Fix documentation for notification policy object_matchers (#61602)

* Fix documentation

* Fix grammar

* Update docs/sources/alerting/set-up/provision-alerting-resources/file-provisioning/index.md

Co-authored-by: George Robinson <george.robinson@grafana.com>

Co-authored-by: George Robinson <george.robinson@grafana.com>
This commit is contained in:
Alex Moreno 2023-01-17 11:37:56 +01:00 committed by GitHub
parent cd363cb037
commit be72e570cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -524,9 +524,9 @@ policies:
- severity =~ "warning|critical"
# <list> a list of grafana-like matchers that an alert rule has to fulfill to match the node
object_matchers:
- alertname = CPUUsage
- service_id-X = serviceX
- severity =~ "warning|critical"
- ['alertname', '=', 'CPUUsage']
- ['service_id-X', '=', 'serviceX']
- ['severity', '=~', 'warning|critical']
# <list> Times when the route should be muted. These must match the name of a
# mute time interval.
# Additionally, the root node cannot have any mute times.