Skip to content

Commit 91c1a07

Browse files
Merge pull request #221608 from yairgil/patch-9
Update alerts-common-schema-definitions.md
2 parents 01b8859 + 3c4cdfa commit 91c1a07

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

articles/azure-monitor/alerts/alerts-common-schema-definitions.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,30 @@ The following fields describe the cause of an alert.
627627
}
628628
```
629629

630+
#### `monitoringService` = `Prometheus`
631+
632+
**Sample values**
633+
634+
```json
635+
{
636+
"alertContext": {
637+
"interval": "PT1M",
638+
"expression": "sql_up > 0",
639+
"expressionValue": "0",
640+
"for": "PT2M",
641+
"labels": {
642+
"Environment": "Prod",
643+
"cluster": "myCluster1"
644+
},
645+
"annotations": {
646+
"summary": "alert on SQL availability"
647+
},
648+
"ruleGroup": "/subscriptions/<subscription ID>/resourceGroups/myResourceGroup/providers/Microsoft.AlertsManagement/prometheusRuleGroups/myRuleGroup"
649+
}
650+
}
651+
```
652+
653+
630654
## Next steps
631655

632656
- Learn more about the [common alert schema](./alerts-common-schema.md).

0 commit comments

Comments
 (0)