Merge "[Prometheus] Fix filesystem space checks"

This commit is contained in:
Zuul 2019-01-30 04:12:45 +00:00 committed by Gerrit Code Review
commit ba68a8c745

View File

@ -1401,7 +1401,7 @@ conf:
- name: basic_linux.rules - name: basic_linux.rules
rules: rules:
- alert: node_filesystem_full_80percent - alert: node_filesystem_full_80percent
expr: sort(node_filesystem_free{device!="ramfs"} < node_filesystem_size{device!="ramfs"} expr: sort(node_filesystem_free{fstype =~ "xfs|ext[34]"} < node_filesystem_size{fstype =~ "xfs|ext[34]"}
* 0.2) / 1024 ^ 3 * 0.2) / 1024 ^ 3
for: 5m for: 5m
labels: labels:
@ -1411,7 +1411,7 @@ conf:
got less than 10% space left on its filesystem.' got less than 10% space left on its filesystem.'
summary: '{{$labels.alias}}: Filesystem is running out of space soon.' summary: '{{$labels.alias}}: Filesystem is running out of space soon.'
- alert: node_filesystem_full_in_4h - alert: node_filesystem_full_in_4h
expr: predict_linear(node_filesystem_free{device!="ramfs"}[1h], 4 * 3600) <= 0 expr: predict_linear(node_filesystem_free{fstype =~ "xfs|ext[34]"}[1h], 4 * 3600) <= 0
for: 5m for: 5m
labels: labels:
severity: page severity: page