From 0a7f0c4355898bc781da4f46ca43eab9c8f6079f Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Sun, 6 Oct 2024 16:30:12 +0800 Subject: [PATCH] tyo0/prometheus: check /persist in DiskFull --- hosts/aws/tyo0/services/prometheus.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts/aws/tyo0/services/prometheus.nix b/hosts/aws/tyo0/services/prometheus.nix index 761918a..9c7eb59 100644 --- a/hosts/aws/tyo0/services/prometheus.nix +++ b/hosts/aws/tyo0/services/prometheus.nix @@ -125,7 +125,7 @@ in } { alert = "DiskFull"; - expr = ''node_filesystem_avail_bytes{mountpoint=~"/|/mnt"} / node_filesystem_size_bytes < 0.1''; + expr = ''node_filesystem_avail_bytes{mountpoint=~"/|/persist|/mnt"} / node_filesystem_size_bytes < 0.1''; annotations = { summary = "Low disk space on {{ $labels.instance }}"; description = "The disk {{ $labels.device }} mounted at {{ $labels.mountpoint }} on {{ $labels.instance }} has less than 10% of empty space available.";