Skip to content

Commit 0b50eb7

Browse files
committed
Reverse fsSpaceAvailableCriticalThreshold and fsSpaceAvailableWarningThreshold
Currently critical alert for space available alerts on warning and warning alert for space available alerts on critical. Signed-off-by: Daniel Lenar <[email protected]>
1 parent 3d9ee5d commit 0b50eb7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/node-mixin/alerts/alerts.libsonnet

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
alert: 'NodeFilesystemAlmostOutOfSpace',
4949
expr: |||
5050
(
51-
node_filesystem_avail_bytes{%(nodeExporterSelector)s,%(fsSelector)s} / node_filesystem_size_bytes{%(nodeExporterSelector)s,%(fsSelector)s} * 100 < %(fsSpaceAvailableCriticalThreshold)d
51+
node_filesystem_avail_bytes{%(nodeExporterSelector)s,%(fsSelector)s} / node_filesystem_size_bytes{%(nodeExporterSelector)s,%(fsSelector)s} * 100 < %(fsSpaceAvailableWarningThreshold)d
5252
and
5353
node_filesystem_readonly{%(nodeExporterSelector)s,%(fsSelector)s} == 0
5454
)
@@ -58,15 +58,15 @@
5858
severity: 'warning',
5959
},
6060
annotations: {
61-
summary: 'Filesystem has less than %(fsSpaceAvailableCriticalThreshold)d%% space left.' % $._config,
61+
summary: 'Filesystem has less than %(fsSpaceAvailableWarningThreshold)d%% space left.' % $._config,
6262
description: 'Filesystem on {{ $labels.device }} at {{ $labels.instance }} has only {{ printf "%.2f" $value }}% available space left.',
6363
},
6464
},
6565
{
6666
alert: 'NodeFilesystemAlmostOutOfSpace',
6767
expr: |||
6868
(
69-
node_filesystem_avail_bytes{%(nodeExporterSelector)s,%(fsSelector)s} / node_filesystem_size_bytes{%(nodeExporterSelector)s,%(fsSelector)s} * 100 < %(fsSpaceAvailableWarningThreshold)d
69+
node_filesystem_avail_bytes{%(nodeExporterSelector)s,%(fsSelector)s} / node_filesystem_size_bytes{%(nodeExporterSelector)s,%(fsSelector)s} * 100 < %(fsSpaceAvailableCriticalThreshold)d
7070
and
7171
node_filesystem_readonly{%(nodeExporterSelector)s,%(fsSelector)s} == 0
7272
)
@@ -76,7 +76,7 @@
7676
severity: '%(nodeCriticalSeverity)s' % $._config,
7777
},
7878
annotations: {
79-
summary: 'Filesystem has less than %(fsSpaceAvailableWarningThreshold)d%% space left.' % $._config,
79+
summary: 'Filesystem has less than %(fsSpaceAvailableCriticalThreshold)d%% space left.' % $._config,
8080
description: 'Filesystem on {{ $labels.device }} at {{ $labels.instance }} has only {{ printf "%.2f" $value }}% available space left.',
8181
},
8282
},

0 commit comments

Comments
 (0)