diff --git a/roles/prometheus/templates/server.rules.yml.j2 b/roles/prometheus/templates/server.rules.yml.j2 index db82ae8..c4cb6bd 100644 --- a/roles/prometheus/templates/server.rules.yml.j2 +++ b/roles/prometheus/templates/server.rules.yml.j2 @@ -149,5 +149,11 @@ groups: summary: > Charge à {{ raw('$value') }} - + - alert: UnhealthyDisk + expr: smartmon_device_smart_healthy < 1 + for: 10m + labels: + severity: "critical" + annotations: + summary: "Le Disque {{ $labels.disk }} n'est pas en bonne santé !" ...