modules/nixos/monitoring/alert-rules: alert at 90% disk usage

This commit is contained in:
zowoq 2023-11-15 09:17:28 +10:00
parent 59a3df7098
commit 5c7bab039b

View file

@ -13,10 +13,10 @@
{
Filesystem80percentFull.enable = false;
Filesystem85percentFull = {
expr = ''disk_used_percent{mode!="ro"} >= 85'';
Filesystem90percentFull = {
expr = ''disk_used_percent{mode!="ro"} >= 90'';
for = "10m";
annotations.description = "{{$labels.host}} device {{$labels.device}} on {{$labels.path}} got less than 15% space left on its filesystem";
annotations.description = "{{$labels.host}} device {{$labels.device}} on {{$labels.path}} got less than 10% space left on its filesystem";
};
Load15.expr = lib.mkForce ''system_load15 / system_n_cpus{host!~"(build|darwin).*"} >= 2.0'';