File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
etc/kayobe/kolla/config/prometheus Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ groups:
25
25
description: "Available memory is {{ $value }} GiB."
26
26
27
27
- alert: LowSwapSpace
28
- expr: (node_memory_SwapFree_bytes / node_memory_SwapTotal_bytes) < {% endraw %}{{ alertmanager_node_free_swap_warning_threshold_ratio }}{% raw %}
28
+ expr: node_memory_SwapTotal_bytes > 0 and (node_memory_SwapFree_bytes / node_memory_SwapTotal_bytes) < {% endraw %}{{ alertmanager_node_free_swap_warning_threshold_ratio }}{% raw %}
29
29
for: 1m
30
30
labels:
31
31
severity: warning
@@ -34,7 +34,7 @@ groups:
34
34
description: "Available swap space is {{ $value | humanizePercentage }}. Running out of swap space causes OOM Kills."
35
35
36
36
- alert: LowSwapSpace
37
- expr: (node_memory_SwapFree_bytes / node_memory_SwapTotal_bytes) < {% endraw %}{{ alertmanager_node_free_swap_critical_threshold_ratio }}{% raw %}
37
+ expr: node_memory_SwapTotal_bytes > 0 and (node_memory_SwapFree_bytes / node_memory_SwapTotal_bytes) < {% endraw %}{{ alertmanager_node_free_swap_critical_threshold_ratio }}{% raw %}
38
38
for: 1m
39
39
labels:
40
40
severity: critical
You can’t perform that action at this time.
0 commit comments