@ -48,7 +48,7 @@
alert: 'NodeFilesystemAlmostOutOfSpace',
alert: 'NodeFilesystemAlmostOutOfSpace',
expr: |||
expr: |||
(
(
node_filesystem_avail_bytes{%(nodeExporterSelector)s,%(fsSelector)s} / node_filesystem_size_bytes{%(nodeExporterSelector)s,%(fsSelector)s} * 100 < %(fsSpaceAvailableCritical Threshold)d
node_filesystem_avail_bytes{%(nodeExporterSelector)s,%(fsSelector)s} / node_filesystem_size_bytes{%(nodeExporterSelector)s,%(fsSelector)s} * 100 < %(fsSpaceAvailableWarning Threshold)d
and
and
node_filesystem_readonly{%(nodeExporterSelector)s,%(fsSelector)s} == 0
node_filesystem_readonly{%(nodeExporterSelector)s,%(fsSelector)s} == 0
)
)
@ -58,7 +58,7 @@
severity: 'warning',
severity: 'warning',
},
},
annotations: {
annotations: {
summary: 'Filesystem has less than %(fsSpaceAvailableCritical Threshold)d%% space left.' % $._config,
summary: 'Filesystem has less than %(fsSpaceAvailableWarning Threshold)d%% space left.' % $._config,
description: 'Filesystem on {{ $labels.device }} at {{ $labels.instance }} has only {{ printf "%.2f" $value }}% available space left.',
description: 'Filesystem on {{ $labels.device }} at {{ $labels.instance }} has only {{ printf "%.2f" $value }}% available space left.',
},
},
},
},
@ -66,7 +66,7 @@
alert: 'NodeFilesystemAlmostOutOfSpace',
alert: 'NodeFilesystemAlmostOutOfSpace',
expr: |||
expr: |||
(
(
node_filesystem_avail_bytes{%(nodeExporterSelector)s,%(fsSelector)s} / node_filesystem_size_bytes{%(nodeExporterSelector)s,%(fsSelector)s} * 100 < %(fsSpaceAvailableWarning Threshold)d
node_filesystem_avail_bytes{%(nodeExporterSelector)s,%(fsSelector)s} / node_filesystem_size_bytes{%(nodeExporterSelector)s,%(fsSelector)s} * 100 < %(fsSpaceAvailableCritical Threshold)d
and
and
node_filesystem_readonly{%(nodeExporterSelector)s,%(fsSelector)s} == 0
node_filesystem_readonly{%(nodeExporterSelector)s,%(fsSelector)s} == 0
)
)
@ -76,7 +76,7 @@
severity: '%(nodeCriticalSeverity)s' % $._config,
severity: '%(nodeCriticalSeverity)s' % $._config,
},
},
annotations: {
annotations: {
summary: 'Filesystem has less than %(fsSpaceAvailableWarning Threshold)d%% space left.' % $._config,
summary: 'Filesystem has less than %(fsSpaceAvailableCritical Threshold)d%% space left.' % $._config,
description: 'Filesystem on {{ $labels.device }} at {{ $labels.instance }} has only {{ printf "%.2f" $value }}% available space left.',
description: 'Filesystem on {{ $labels.device }} at {{ $labels.instance }} has only {{ printf "%.2f" $value }}% available space left.',
},
},
},
},