Skip to content

Commit a44f777

Browse files
committed
add node-exporter disk space alert
1 parent a1cc078 commit a44f777

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
groups:
2+
- name: node-exporter
3+
rules:
4+
# Please add ignored mountpoints in node_exporter parameters like
5+
# "--collector.filesystem.ignored-mount-points=^/(sys|proc|dev|run)($|/)".
6+
# Same rule using "node_filesystem_free_bytes" will fire when disk fills for non-root users.
7+
- alert: HostOutOfDiskSpace
8+
expr: (node_filesystem_avail_bytes{fstype!~"^(fuse.*|tmpfs|cifs|nfs)"} / node_filesystem_size_bytes < .10 and on (instance, device, mountpoint) node_filesystem_readonly == 0)
9+
for: 2m
10+
labels:
11+
severity: critical
12+
annotations:
13+
summary: Host out of disk space (instance {{ $labels.instance }})
14+
description: 'Disk is almost full (< 10% left)\n VALUE = {{ $value }}\n LABELS = {{ $labels }}'

0 commit comments

Comments
 (0)