Skip to content

Commit bf1d947

Browse files
authored
Merge pull request #97435 from harelbr/patch-8
Update alerts-metric-create-templates.md
2 parents 9429c3d + 28c797d commit bf1d947

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

articles/azure-monitor/platform/alerts-metric-create-templates.md

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -782,9 +782,19 @@ az group deployment create \
782782
783783
## Template for a more advanced Dynamic Thresholds metric alert
784784

785-
You can use the following template to create a more advanced Dynamic Thresholds metric alert on dimensional metrics. Multiple criteria are not currently supported.
785+
You can use the following template to create a more advanced Dynamic Thresholds metric alert rule on dimensional metrics.
786786

787-
Dynamic Thresholds alerts rule can create tailored thresholds for hundreds of metric series (even different types) at a time, which results in fewer alert rules to manage.
787+
A single Dynamic Thresholds alert rule can create tailored thresholds for hundreds of metric time series (even different types) at a time, which results in fewer alert rules to manage.
788+
789+
In the example below, the alert rule will monitor the dimensions value combinations of the **ResponseType** and **ApiName** dimensions for the **Transactions** metric:
790+
1. ResponsType - For each value of the **ResponseType** dimension, including future values, a different time series will be monitored individually.
791+
2. ApiName - A different time series will be monitored only for the **GetBlob** and **PutBlob** dimension values.
792+
793+
For example, a few of the potential time series that will be monitored by this alert rule are:
794+
- Metric = *Transactions*, ResponseType = *Success*, ApiName = *GetBlob*
795+
- Metric = *Transactions*, ResponseType = *Success*, ApiName = *PutBlob*
796+
- Metric = *Transactions*, ResponseType = *Server Timeout*, ApiName = *GetBlob*
797+
- Metric = *Transactions*, ResponseType = *Server Timeout*, ApiName = *PutBlob*
788798

789799
Save the json below as advanceddynamicmetricalert.json for the purpose of this walkthrough.
790800

@@ -930,7 +940,7 @@ Save and modify the json below as advanceddynamicmetricalert.parameters.json for
930940
"resourceId": {
931941
"value": "/subscriptions/replace-with-subscription-id/resourceGroups/replace-with-resourcegroup-name/providers/Microsoft.Storage/storageAccounts/replace-with-storage-account"
932942
},
933-
"criterion1": {
943+
"criterion": {
934944
"value": {
935945
"criterionType": "DynamicThresholdCriterion",
936946
"name": "1st criterion",
@@ -939,12 +949,12 @@ Save and modify the json below as advanceddynamicmetricalert.parameters.json for
939949
{
940950
"name":"ResponseType",
941951
"operator": "Include",
942-
"values": ["Success"]
952+
"values": ["*"]
943953
},
944954
{
945955
"name":"ApiName",
946956
"operator": "Include",
947-
"values": ["GetBlob"]
957+
"values": ["GetBlob", "PutBlob"]
948958
}
949959
],
950960
"operator": "GreaterOrLessThan",
@@ -955,7 +965,7 @@ Save and modify the json below as advanceddynamicmetricalert.parameters.json for
955965
},
956966
"timeAggregation": "Total"
957967
}
958-
}
968+
},
959969
"actionGroupId": {
960970
"value": "/subscriptions/replace-with-subscription-id/resourceGroups/replace-with-resource-group-name/providers/Microsoft.Insights/actionGroups/replace-with-actiongroup-name"
961971
}
@@ -991,7 +1001,7 @@ az group deployment create \
9911001

9921002
>[!NOTE]
9931003
>
994-
> While the metric alert could be created in a different resource group to the target resource, we recommend using the same resource group as your target resource.
1004+
> Multiple criteria are not currently supported for metric alert rules that use Dynamic Thresholds.
9951005
9961006
## Template for metric alert that monitors multiple resources
9971007

0 commit comments

Comments
 (0)