From 2b7f0d950c716e5adf30040b4a61e5dc71056ac7 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Mon, 16 Jan 2023 15:50:46 +0100 Subject: [PATCH] [v9.3.x] Add object_matchers example (#61558) Add object_matchers example (#61235) * Add object_matchers example * Use better terminology (cherry picked from commit 3db08d4e360c2d421f197b3525af0f35c4eb09ea) Co-authored-by: Alex Moreno --- .../file-provisioning/index.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/sources/alerting/set-up/provision-alerting-resources/file-provisioning/index.md b/docs/sources/alerting/set-up/provision-alerting-resources/file-provisioning/index.md index 002667c9498..77753545c1c 100644 --- a/docs/sources/alerting/set-up/provision-alerting-resources/file-provisioning/index.md +++ b/docs/sources/alerting/set-up/provision-alerting-resources/file-provisioning/index.md @@ -516,9 +516,16 @@ policies: # a very low alert volume or your upstream notification system performs # its own grouping. group_by: ['...'] - # a list of matchers that an alert has to fulfill to match the node + # 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" + # 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" # Times when the route should be muted. These must match the name of a # mute time interval.