Fix spurious DiscFilling alerts after reboots due to changing device names

This commit is contained in:
Julian Rother 2024-12-08 21:45:45 +01:00
parent 1daf64a848
commit b99318f2b4
No known key found for this signature in database
GPG key ID: 8F9B6AE9BAAE4899

View file

@ -229,7 +229,7 @@ prometheus_agent:
group: nodeexporter group: nodeexporter
alert: DiscFilling alert: DiscFilling
enabled: True enabled: True
expr: predict_linear(node_filesystem_free_bytes{fstype!~"tmpfs", job="node", instance="{{ inventory_hostname }}"}[12h], 24 * 3600) < 0 expr: predict_linear((min by (instance, mountpoint) (node_filesystem_free_bytes{fstype!~"tmpfs", job="node", instance="{{ inventory_hostname }}"}))[12h:1m], 24 * 3600) < 0
for: 5m for: 5m
labels: labels:
severity: warning severity: warning
@ -240,7 +240,7 @@ prometheus_agent:
group: nodeexporter group: nodeexporter
alert: DiscFilling alert: DiscFilling
enabled: True enabled: True
expr: predict_linear(node_filesystem_free_bytes{fstype!~"tmpfs", job="node", instance="{{ inventory_hostname }}"}[12h], 3 * 3600) < 0 expr: predict_linear((min by (instance, mountpoint) (node_filesystem_free_bytes{fstype!~"tmpfs", job="node", instance="{{ inventory_hostname }}"}))[12h:1m], 3 * 3600) < 0
for: 5m for: 5m
labels: labels:
severity: critical severity: critical