AlertManager complains about Swap filling up

I think the alert is correct so what about adding more swap? You could create a swap file.

EDIT:

To disable the rule you could comment it out in the rules config but that change doesn’t survive a restore.

Edit the memory rule…

runagent -m metrics1 nano rules.d/memory.yml

…and comment out the swap_full rule:

groups:
- name: Memory
  rules:
#  - alert: swap_full
#    expr: ((1 - (node_memory_SwapFree_bytes / node_memory_SwapTotal_bytes)) * 100 > 80)
#    for: 2m
#    labels:
#      severity: warning
#    annotations:
#      summary: Host swap is filling up (instance {{ $labels.instance }})
#      description: "Swap is filling up (>80%)\n  VALUE = {{ $value }}\n  LABELS = {{ $labels }}"
...

Restart the Grafana services:

runagent -m metrics1 ../actions/configure-module/80services
1 Like