1
0
Fork 0
mirror of https://github.com/mdlayher/homelab.git synced 2024-12-14 11:47:32 +00:00

nixos/servnerr-4: mute snmp alerts

This commit is contained in:
Matt Layher 2024-09-15 15:12:14 -04:00
parent 4a8036e916
commit f1eb5aaa17

View file

@ -6,14 +6,14 @@
# excluded due to their experimental nature. # excluded due to their experimental nature.
{ {
alert = "InstanceDown"; alert = "InstanceDown";
expr = ''up{instance!~"(nerr-.*|theatnerr-.*)",job!~"lab-.*"} == 0''; expr = ''up{instance!~"(nerr-.*|theatnerr-.*)",job!~"lab-.*|snmp-.*"} == 0'';
for = "5m"; for = "5m";
annotations.summary = annotations.summary =
"{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 5 minutes."; "{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 5 minutes.";
} }
{ {
alert = "ServiceDown"; alert = "ServiceDown";
expr = ''probe_success{instance!~"nerr-.*",job!~"lab-.*"} == 0''; expr = ''probe_success{instance!~"nerr-.*",job!~"lab-.*|snmp-.*"} == 0'';
for = "5m"; for = "5m";
annotations.summary = annotations.summary =
"{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 5 minutes."; "{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 5 minutes.";