From ac3136a441df268d01ad64799b5c7fbdf4af5044 Mon Sep 17 00:00:00 2001 From: friedrich goerz Date: Tue, 26 Oct 2021 15:13:24 +0200 Subject: [PATCH] DEV-228: changed promql-query to reduce noise in alerting MhimBHsteams-channels --- templates/prometheus/config/prometheus/alert.rules.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/prometheus/config/prometheus/alert.rules.j2 b/templates/prometheus/config/prometheus/alert.rules.j2 index 0980b9c..a324a67 100644 --- a/templates/prometheus/config/prometheus/alert.rules.j2 +++ b/templates/prometheus/config/prometheus/alert.rules.j2 @@ -32,7 +32,7 @@ groups: description: "High load for more than 2 minutes." - alert: apt_upgrades_pending - expr: apt_upgrades_pending > 0 + expr: apt_upgrades_pending{origin=~".*security.*"} > 0 for: 1m labels: severity: warning