Skip to content

Commit b60c0b1

Browse files
authored
Add constraints about multi-criteria rules
1 parent f0294b9 commit b60c0b1

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: harelbr
55
services: azure-monitor
66
ms.service: azure-monitor
77
ms.topic: conceptual
8-
ms.date: 12/5/2019
8+
ms.date: 1/13/2020
99
ms.author: harelbr
1010
ms.subservice: alerts
1111
---
@@ -549,7 +549,12 @@ az group deployment create \
549549

550550
Newer metric alerts support alerting on multi-dimensional metrics as well as supporting multiple criteria. You can use the following template to create a more advanced metric alert rule on dimensional metrics and specify multiple criteria.
551551

552-
Please note that when the alert rule contains multiple criteria, the use of dimensions is limited to one value per dimension within each criterion.
552+
Please note the following constraints when using dimensions in an alert rule that contains multiple criteria:
553+
- You can only select one value per dimension within each criterion.
554+
- You cannot use "\*" as a dimension value.
555+
- When metrics that are configured in different criterions support the same dimension, then a configured dimension value must be explicitly set in the same way for all of those metrics (in the relevant criterions).
556+
- In the example below, because both the **Transactions** and **SuccessE2ELatency** metrics have an **API Name** dimension, and *criterion1* specifies the *"GetBlob"* value for the **API Name** dimension, then *criterion2* must also set a *"GetBlob"* value for the **API Name** dimension.
557+
553558

554559
Save the json below as advancedstaticmetricalert.json for the purpose of this walkthrough.
555560

@@ -778,9 +783,6 @@ az group deployment create \
778783
--parameters @advancedstaticmetricalert.parameters.json
779784
```
780785

781-
>[!NOTE]
782-
>
783-
> When an alert rule contains multiple criteria, the use of dimensions is limited to one value per dimension within each criterion.
784786

785787
## Template for a static metric alert that monitors multiple dimensions
786788

0 commit comments

Comments
 (0)