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:
parent
4a8036e916
commit
f1eb5aaa17
1 changed files with 2 additions and 2 deletions
|
@ -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.";
|
||||
|
|
Loading…
Reference in a new issue