From 4ddbd3d3f24049459f37c5c1c325e125145b6be2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorben=20G=C3=BCnther?= Date: Thu, 23 Sep 2021 21:03:26 +0200 Subject: [PATCH] prometheus: Add alert for critical updates --- roles/prometheus/files/rules.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/roles/prometheus/files/rules.yml b/roles/prometheus/files/rules.yml index a8d4183..b262b95 100644 --- a/roles/prometheus/files/rules.yml +++ b/roles/prometheus/files/rules.yml @@ -74,6 +74,14 @@ groups: annotations: summary: "Server {{ $labels.instance }} should be updated" + - alert: Critical updates pending + expr: archlinux_critical_updates_pending > 0 + for: 5m + labels: + severity: critical + annotations: + summary: "Server {{ $labels.instance }} should be updated immediately" + - alert: Pacnew pending expr: archlinux_pacnew_pending > 0 for: 5m -- 2.44.0