Add object_matchers example (#61235)

* Add object_matchers example

* Use better terminology
This commit is contained in:
Alex Moreno 2023-01-11 09:43:42 +01:00 committed by GitHub
parent 499fdf1ae4
commit 3db08d4e36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -516,9 +516,16 @@ policies:
# a very low alert volume or your upstream notification system performs
# its own grouping.
group_by: ['...']
# <list> a list of matchers that an alert has to fulfill to match the node
# <list> a list of prometheus-like matchers that an alert rule has to fulfill to match the node (allowed chars
# [a-zA-Z_:])
matchers:
- alertname = Watchdog
- service_id_X = serviceX
- 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"
# <list> Times when the route should be muted. These must match the name of a
# mute time interval.