Monitor APT pending and change swap alert level
This commit is contained in:
parent
b3f25e2c8b
commit
046cd93581
1 changed files with 23 additions and 3 deletions
|
@ -50,13 +50,14 @@ groups:
|
||||||
node_memory_SwapFree_bytes
|
node_memory_SwapFree_bytes
|
||||||
/ node_memory_SwapTotal_bytes
|
/ node_memory_SwapTotal_bytes
|
||||||
)
|
)
|
||||||
) * 100 >= 20
|
) * 100 >= 50
|
||||||
for: 3m
|
for: 3m
|
||||||
labels:
|
labels:
|
||||||
severity: warning
|
severity: warning
|
||||||
annotations:
|
annotations:
|
||||||
summary: >-
|
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
|
- alert: HostPhysicalComponentTooHot
|
||||||
expr: node_hwmon_temp_celsius > 79
|
expr: node_hwmon_temp_celsius > 79
|
||||||
|
@ -155,5 +156,24 @@ groups:
|
||||||
labels:
|
labels:
|
||||||
severity: "critical"
|
severity: "critical"
|
||||||
annotations:
|
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
|
||||||
...
|
...
|
||||||
|
|
Loading…
Reference in a new issue