Skip to content
Snippets Groups Projects
Commit 64c73eaf authored by Aleksandar Topuzovic's avatar Aleksandar Topuzovic
Browse files

Ignore '/etc/*' mountpoints

* Ignores '/etc/resolv.conf', '/etc/hosts' and '/etc/hostname' mountpoints
* Otherwise 3 additional alerts are generated
parent 9b4f6ce5
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@
summary: 'Node disk is running full within 24 hours',
},
expr: |||
predict_linear(node_filesystem_free{%(nodeExporterSelector)s}[6h], 3600 * 24) < 0
predict_linear(node_filesystem_free{%(nodeExporterSelector)s,mountpoint!~"^/etc/(?:resolv.conf|hosts|hostname)$"}[6h], 3600 * 24) < 0
||| % $._config,
'for': '30m',
labels: {
......@@ -25,7 +25,7 @@
summary: 'Node disk is running full within 2 hours',
},
expr: |||
predict_linear(node_filesystem_free{%(nodeExporterSelector)s}[30m], 3600 * 2) < 0
predict_linear(node_filesystem_free{%(nodeExporterSelector)s,mountpoint!~"^/etc/(?:resolv.conf|hosts|hostname)$"}[30m], 3600 * 2) < 0
||| % $._config,
'for': '10m',
labels: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment