Monitor APT pending and change swap alert level
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
jeltz 2021-12-13 02:41:12 +01:00
parent b3f25e2c8b
commit 046cd93581

View file

@ -50,13 +50,14 @@ groups:
node_memory_SwapFree_bytes
/ node_memory_SwapTotal_bytes
)
) * 100 >= 20
) * 100 >= 50
for: 3m
labels:
severity: warning
annotations:
summary: >-
La mémoire swap est utilisée à {{ raw('$value | printf "%.1f"') }}%
La mémoire swap est utilisée à
{{ raw('$value | printf "%.1f"') }}%
- alert: HostPhysicalComponentTooHot
expr: node_hwmon_temp_celsius > 79
@ -155,5 +156,24 @@ groups:
labels:
severity: "critical"
annotations:
summary: "Le Disque {{ raw('$labels.disk') }} n'est pas en bonne santé !"
summary: >
Le disque {{ raw('$labels.disk') }} n'est pas en bonne santé
- alert: AptUpgradesPending
expr: sum by (instance) (apt_upgrades_pending) > 0
for: 10m
labels:
severity: warning
annotations:
summary: >
Des mises à jour de paquets sont en attente
- alert: RebootRequired
expr: node_reboot_required == 1
for: 10m
labels:
severity: warning
annotations:
summary: >
Un redémarrage est nécessaire
...