From ff76ceccdea4125cf2f9fde328a2c8e11589ecbe Mon Sep 17 00:00:00 2001 From: Samuel Berthe Date: Sun, 30 Jul 2023 22:24:31 +0200 Subject: [PATCH] Update rules.yml --- _data/rules.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/_data/rules.yml b/_data/rules.yml index 07a42f9..3f92066 100644 --- a/_data/rules.yml +++ b/_data/rules.yml @@ -196,6 +196,10 @@ groups: query: '(node_filesystem_files_free / node_filesystem_files * 100 < 10 and ON (instance, device, mountpoint) node_filesystem_readonly == 0) * on(instance) group_left (nodename) node_uname_info{nodename=~".+"}' severity: warning for: 2m + - name: Host filesystem device error + description: {{ $labels.instance }}: Device error with the {{ $labels.mountpoint }} filesystem + query: 'node_filesystem_device_error == 1' + severity: critical - name: Host inodes will fill in 24 hours description: Filesystem is predicted to run out of inodes within the next 24 hours at current write rate query: '(node_filesystem_files_free / node_filesystem_files * 100 < 10 and predict_linear(node_filesystem_files_free[1h], 24 * 3600) < 0 and ON (instance, device, mountpoint) node_filesystem_readonly == 0) * on(instance) group_left (nodename) node_uname_info{nodename=~".+"}'