From e5d4a5b64e4995175acfdd2cd6f4eace177bbabf Mon Sep 17 00:00:00 2001 From: Nik Clayton Date: Fri, 16 Oct 2020 17:07:31 +0200 Subject: [PATCH] Use node_filesystem_avail_bytes This is consistent with the other disk rule, and the will fire when the disk will fill for non-root users. --- _data/rules.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_data/rules.yml b/_data/rules.yml index aa825c8..ff5e173 100644 --- a/_data/rules.yml +++ b/_data/rules.yml @@ -152,7 +152,7 @@ groups: "--collector.filesystem.ignored-mount-points=^/(sys|proc|dev|run)($|/)" - name: Host disk will fill in 4 hours description: Disk will fill in 4 hours at current write rate - query: 'predict_linear(node_filesystem_free_bytes{fstype!~"tmpfs"}[1h], 4 * 3600) < 0' + query: 'predict_linear(node_filesystem_avail_bytes{fstype!~"tmpfs"}[1h], 4 * 3600) < 0' severity: warning - name: Host out of inodes description: Disk is almost running out of available inodes (< 10% left)