|
48 | 48 | alert: 'NodeFilesystemAlmostOutOfSpace', |
49 | 49 | expr: ||| |
50 | 50 | ( |
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 |
52 | 52 | and |
53 | 53 | node_filesystem_readonly{%(nodeExporterSelector)s,%(fsSelector)s} == 0 |
54 | 54 | ) |
|
58 | 58 | severity: 'warning', |
59 | 59 | }, |
60 | 60 | annotations: { |
61 | | - summary: 'Filesystem has less than %(fsSpaceAvailableCriticalThreshold)d%% space left.' % $._config, |
| 61 | + summary: 'Filesystem has less than %(fsSpaceAvailableWarningThreshold)d%% space left.' % $._config, |
62 | 62 | description: 'Filesystem on {{ $labels.device }} at {{ $labels.instance }} has only {{ printf "%.2f" $value }}% available space left.', |
63 | 63 | }, |
64 | 64 | }, |
65 | 65 | { |
66 | 66 | alert: 'NodeFilesystemAlmostOutOfSpace', |
67 | 67 | expr: ||| |
68 | 68 | ( |
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 |
70 | 70 | and |
71 | 71 | node_filesystem_readonly{%(nodeExporterSelector)s,%(fsSelector)s} == 0 |
72 | 72 | ) |
|
76 | 76 | severity: '%(nodeCriticalSeverity)s' % $._config, |
77 | 77 | }, |
78 | 78 | annotations: { |
79 | | - summary: 'Filesystem has less than %(fsSpaceAvailableWarningThreshold)d%% space left.' % $._config, |
| 79 | + summary: 'Filesystem has less than %(fsSpaceAvailableCriticalThreshold)d%% space left.' % $._config, |
80 | 80 | description: 'Filesystem on {{ $labels.device }} at {{ $labels.instance }} has only {{ printf "%.2f" $value }}% available space left.', |
81 | 81 | }, |
82 | 82 | }, |
|
0 commit comments