From b82d20385ca771396bd036fc25798f42827bf777 Mon Sep 17 00:00:00 2001 From: Berny Linville Date: Thu, 17 Aug 2023 16:22:09 +0800 Subject: [PATCH] fix: add routes berfore match_re When i configuring alertmanager vars, the absence of 'routes' in front of '- match_re' has caused confusion and errors. Signed-off-by: Berny Linville --- roles/alertmanager/defaults/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/alertmanager/defaults/main.yml b/roles/alertmanager/defaults/main.yml index 36e1626cb..0533d7a56 100644 --- a/roles/alertmanager/defaults/main.yml +++ b/roles/alertmanager/defaults/main.yml @@ -86,6 +86,7 @@ alertmanager_route: {} # receiver: slack # # This routes performs a regular expression match on alert labels to # # catch alerts that are related to a list of services. +# routes: # - match_re: # service: ^(foo1|foo2|baz)$ # receiver: team-X-mails