modules/nixos/monitoring/alert-rules: revert reboot to 300, add localhost_reboot
This commit is contained in:
parent
7062fc07e4
commit
b1483a1ead
1 changed files with 6 additions and 1 deletions
|
@ -106,8 +106,13 @@ lib.mapAttrsToList
|
||||||
description = "{{$labels.host}} is running with load15 > 1 for at least 5 minutes: {{$value}}";
|
description = "{{$labels.host}} is running with load15 > 1 for at least 5 minutes: {{$value}}";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
localhost_reboot = {
|
||||||
|
condition = ''system_uptime{instance="localhost:9273"} < 900'';
|
||||||
|
description = "{{$labels.host}} just rebooted";
|
||||||
|
};
|
||||||
|
|
||||||
reboot = {
|
reboot = {
|
||||||
condition = "system_uptime < 600";
|
condition = ''system_uptime{instance!="localhost:9273"} < 300'';
|
||||||
description = "{{$labels.host}} just rebooted";
|
description = "{{$labels.host}} just rebooted";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue