Monitor systemd services

certbot_on_virtu
Alexandre Iooss 2019-06-09 11:01:56 +02:00
parent 17d3d0c944
commit c274db2ab5
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02
1 changed files with 10 additions and 0 deletions

View File

@ -56,6 +56,16 @@ groups:
summary: "Charge CPU élevée sur {{ $labels.instance }}"
description: "La charge CPU (moyenne de 15mn) est élevée."
# Check systemd unit (> buster)
- alert: SystemdServiceFailed
expr: node_systemd_unit_state{state="failed"} == 1
for: 10m
labels:
severity: warning
annotations:
summary: "{{ $labels.name }} a échoué sur {{ $labels.instance }}"
description: "Le service {{ $labels.name }} a échoué."
# NTP (need NTP plugin in node)
# - alert: ntp_drifting
# expr: node_ntp_drift_seconds > 0.05