You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-monitor/platform/alerts-metric.md
+25-16Lines changed: 25 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,16 @@
1
1
---
2
-
title: "Create, view and manage Metric Alerts Using Azure Monitor"
3
-
description: Learn how to use Azure portal or CLI to create, view and manage metric alert rules.
2
+
title: "Create, view, and manage Metric Alerts Using Azure Monitor"
3
+
description: Learn how to use Azure portal or CLI to create, view, and manage metric alert rules.
4
4
author: harelbr
5
5
ms.service: azure-monitor
6
6
ms.topic: conceptual
7
-
ms.date: 09/18/2018
7
+
ms.date: 02/16/2020
8
8
ms.author: harelbr
9
9
ms.subservice: alerts
10
10
---
11
11
# Create, view, and manage metric alerts using Azure Monitor
12
12
13
-
Metric alerts in Azure Monitor provide a way to get notified when one of your metrics cross a threshold. Metric alerts work on a range of multi-dimensional platform metrics, custom metrics, Application Insights standard and custom metrics. In this article, we will describe how to create, view and manage metric alert rules through Azure portal and Azure CLI. You can also create metric alert rules using Azure Resource Manager templates which is described in [a separate article](alerts-metric-create-templates.md).
13
+
Metric alerts in Azure Monitor provide a way to get notified when one of your metrics crosses a threshold. Metric alerts work on a range of multi-dimensional platform metrics, custom metrics, Application Insights standard and custom metrics. In this article, we will describe how to create, view, and manage metric alert rules through Azure portal and Azure CLI. You can also create metric alert rules using Azure Resource Manager templates, which are described in [a separate article](alerts-metric-create-templates.md).
14
14
15
15
You can learn more about how metric alerts work from [metric alerts overview](alerts-metric-overview.md).
16
16
@@ -33,21 +33,30 @@ The following procedure describes how to create a metric alert rule in Azure por
33
33
34
34
6. You will see a list of signals supported for the resource, select the metric you want to create an alert on.
35
35
36
-
7.Optionally, refine the metric by adjusting **Period** and **Aggregation**. If the metric has dimensions, you will see **Dimensions** table presented. Select one or more values per dimension. The metric alert will run evaluate the condition for all combinations of values selected. [Learn more about how alerting on multi-dimensional metrics works](alerts-metric-overview.md). You can also **Select \*** for any of the dimensions. **Select \*** will dynamically scale the selection to all current and future values for a dimension.
36
+
7.You will see a chart for the metric for the last six hours. Use the **Chart period** dropdown to select to see longer history for the metric.
37
37
38
-
8. You will see a chart for the metric for the last 6 hours. Define the alert parameters; **Condition Type**, **Frequency**, **Operator** and **Threshold** or **Sensitivity**, this will determine the logic which the metric alert rule will evaluate. [Learn more about Dynamic Thresholds condition type and sensitivity options](alerts-dynamic-thresholds.md).
38
+
8. If the metric has dimensions, you will see a dimensions table presented. Select one or more values per dimension.
39
+
- The displayed dimension values are based on metric data from the last three days.
40
+
- If the dimension value you're looking for isn't displayed, click "+" to add a custom value.
41
+
- You can also **Select \*** for any of the dimensions. **Select \*** will dynamically scale the selection to all current and future values for a dimension.
39
42
40
-
9. If you are using a static threshold, the metric chart can help determine what might be a reasonable threshold. If you are using a Dynamic Thresholds, the metric chart will display the calculated thresholds based on recent data.
43
+
The metric alert rule will evaluate the condition for all combinations of values selected. [Learn more about how alerting on multi-dimensional metrics works](alerts-metric-overview.md).
41
44
42
-
10. Click **Done**
45
+
9. Select the **Threshold** type, **Operator**, and **Aggregation type**. This will determine the logic that the metric alert rule will evaluate.
46
+
- If you are using a **Static** threshold, continue to define a **Threshold value**. The metric chart can help determine what might be a reasonable threshold.
47
+
- If you are using a **Dynamic** threshold, continue to define the **Threshold sensitivity**. The metric chart will display the calculated thresholds based on recent data. [Learn more about Dynamic Thresholds condition type and sensitivity options](alerts-dynamic-thresholds.md).
43
48
44
-
11. Optionally, add another criteria if you want to monitor a complex alert rule. Currently users can have alert rules with Dynamic Thresholds criteria as a single criterion.
49
+
10. Optionally, refine the condition by adjusting **Aggregation granularity** and **Frequency of evaluation**.
45
50
46
-
12. Fill in **Alert details** like **Alert Rule Name**, **Description** and **Severity**
51
+
11. Click **Done**.
47
52
48
-
13. Add an action group to the alert either by selecting an existing action group or creating a new action group.
53
+
12. Optionally, add another criteria if you want to monitor a complex alert rule. Currently users can have alert rules with Dynamic Thresholds criteria as a single criterion.
49
54
50
-
14. Click **Done** to save the metric alert rule.
55
+
13. Fill in **Alert details** like **Alert rule name**, **Description**, and **Severity**.
56
+
57
+
14. Add an action group to the alert either by selecting an existing action group or creating a new action group.
58
+
59
+
15. Click **Done** to save the metric alert rule.
51
60
52
61
> [!NOTE]
53
62
> Metric alert rules created through portal are created in the same resource group as the target resource.
@@ -60,7 +69,7 @@ You can view and manage metric alert rules using the Manage Rules blade under Al
60
69
61
70
2. Click on **Alerts** and **Manage rules**
62
71
63
-
3. In the **Manage rules** blade, you can view all your alert rules across subscriptions. You can further filter the rules using **Resource group**, **Resource type** and **Resource**. If you want to see only metric alerts, select **Signal type** as Metrics.
72
+
3. In the **Manage rules** blade, you can view all your alert rules across subscriptions. You can further filter the rules using **Resource group**, **Resource type**, and **Resource**. If you want to see only metric alerts, select **Signal type** as Metrics.
64
73
65
74
> [!TIP]
66
75
> In the **Manage rules** blade, you can select multiple alert rules and enable/disable them. This might be useful when certain target resources need to be put under maintenance
@@ -76,11 +85,11 @@ You can view and manage metric alert rules using the Manage Rules blade under Al
76
85
77
86
## With Azure CLI
78
87
79
-
The previous sections described how to create, view and manage metric alert rules using Azure portal. This section will describe how to do the same using cross-platform [Azure CLI](https://docs.microsoft.com/cli/azure/get-started-with-azure-cli?view=azure-cli-latest). Quickest way to start using Azure CLI is through [Azure Cloud Shell](https://docs.microsoft.com/azure/cloud-shell/overview?view=azure-cli-latest). For this article, we will use Cloud shell.
88
+
The previous sections described how to create, view, and manage metric alert rules using Azure portal. This section will describe how to do the same using cross-platform [Azure CLI](https://docs.microsoft.com/cli/azure/get-started-with-azure-cli?view=azure-cli-latest). Quickest way to start using Azure CLI is through [Azure Cloud Shell](https://docs.microsoft.com/azure/cloud-shell/overview?view=azure-cli-latest). For this article, we will use Cloud Shell.
80
89
81
-
1. Go to Azure portal, click on **Cloud shell**.
90
+
1. Go to Azure portal, click on **Cloud Shell**.
82
91
83
-
2. At the prompt, you can use commands with ``--help`` option to learn more about the command and how to use it. For example, the following command shows you the list of commands available for creating, viewing and managing metric alerts
92
+
2. At the prompt, you can use commands with ``--help`` option to learn more about the command and how to use it. For example, the following command shows you the list of commands available for creating, viewing, and managing metric alerts
0 commit comments