fix(monitoring): exclude shm from HostFilesystemDeviceError

node-exporter always reports device_error=1 for containerd sandbox shm
bind mounts (tmpfs), producing ~50 bogus critical alerts on the
kubevirt hosts. Verified against live metrics that no non-shm device
errors exist, so nothing real is filtered out.

Signed-off-by: Ryan Yin <xiaoyin_c@qq.com>
This commit is contained in:
Ryan Yin
2026-07-26 15:28:41 +08:00
parent 21c6d9b7bc
commit ec208ab4d1
@@ -136,7 +136,9 @@ groups:
}}\n LABELS = {{ $labels }}"
- alert: HostFilesystemDeviceError
expr: "node_filesystem_device_error == 1"
# node-exporter always flags containerd/docker sandbox shm bind mounts
# (tmpfs) as device errors, exclude this known false positive.
expr: 'node_filesystem_device_error{device!="shm"} == 1'
for: 0m
labels:
severity: critical