From 2b8028ec37356999ff2096b90b055f85753e026a Mon Sep 17 00:00:00 2001 From: Clarissa Borges Date: Thu, 27 Jul 2023 15:01:42 -0300 Subject: [PATCH] Fix matchers for Alertmanager routing rules The comparison only works if we use the "=~" operator to match severities for alerts. --- aws/telemetry/modules/prometheus-workspace/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws/telemetry/modules/prometheus-workspace/main.tf b/aws/telemetry/modules/prometheus-workspace/main.tf index a2789b55..b2615847 100644 --- a/aws/telemetry/modules/prometheus-workspace/main.tf +++ b/aws/telemetry/modules/prometheus-workspace/main.tf @@ -102,7 +102,7 @@ locals { receiver = name matchers = [ - "severity = ${name}" + "severity =~ ${name}" ] } ]