From f1eb5aaa178c660c9cee4c8ae242fb78cdfa3de7 Mon Sep 17 00:00:00 2001 From: Matt Layher Date: Sun, 15 Sep 2024 15:12:14 -0400 Subject: [PATCH] nixos/servnerr-4: mute snmp alerts --- nixos/servnerr-4/prometheus-alerts.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/servnerr-4/prometheus-alerts.nix b/nixos/servnerr-4/prometheus-alerts.nix index 55f6d69..1fe329a 100644 --- a/nixos/servnerr-4/prometheus-alerts.nix +++ b/nixos/servnerr-4/prometheus-alerts.nix @@ -6,14 +6,14 @@ # excluded due to their experimental nature. { alert = "InstanceDown"; - expr = ''up{instance!~"(nerr-.*|theatnerr-.*)",job!~"lab-.*"} == 0''; + expr = ''up{instance!~"(nerr-.*|theatnerr-.*)",job!~"lab-.*|snmp-.*"} == 0''; for = "5m"; annotations.summary = "{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 5 minutes."; } { alert = "ServiceDown"; - expr = ''probe_success{instance!~"nerr-.*",job!~"lab-.*"} == 0''; + expr = ''probe_success{instance!~"nerr-.*",job!~"lab-.*|snmp-.*"} == 0''; for = "5m"; annotations.summary = "{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 5 minutes.";