mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-24 02:17:00 +08:00
fix: check inodes space for all mountpoints (#315)
This commit is contained in:
parent
bc24185c4d
commit
98d8a7b53b
1 changed files with 2 additions and 2 deletions
|
|
@ -186,12 +186,12 @@ groups:
|
||||||
for: 2m
|
for: 2m
|
||||||
- name: Host out of inodes
|
- name: Host out of inodes
|
||||||
description: Disk is almost running out of available inodes (< 10% left)
|
description: Disk is almost running out of available inodes (< 10% left)
|
||||||
query: 'node_filesystem_files_free{mountpoint ="/rootfs"} / node_filesystem_files{mountpoint="/rootfs"} * 100 < 10 and ON (instance, device, mountpoint) node_filesystem_readonly{mountpoint="/rootfs"} == 0'
|
query: 'node_filesystem_files_free / node_filesystem_files * 100 < 10 and ON (instance, device, mountpoint) node_filesystem_readonly == 0'
|
||||||
severity: warning
|
severity: warning
|
||||||
for: 2m
|
for: 2m
|
||||||
- name: Host inodes will fill in 24 hours
|
- 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
|
description: Filesystem is predicted to run out of inodes within the next 24 hours at current write rate
|
||||||
query: 'node_filesystem_files_free{mountpoint ="/rootfs"} / node_filesystem_files{mountpoint="/rootfs"} * 100 < 10 and predict_linear(node_filesystem_files_free{mountpoint="/rootfs"}[1h], 24 * 3600) < 0 and ON (instance, device, mountpoint) node_filesystem_readonly{mountpoint="/rootfs"} == 0'
|
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'
|
||||||
severity: warning
|
severity: warning
|
||||||
for: 2m
|
for: 2m
|
||||||
- name: Host unusual disk read latency
|
- name: Host unusual disk read latency
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue