]> git.openstreetmap.org Git - chef.git/commitdiff
Add an alert for exim being down
authorTom Hughes <tom@compton.nu>
Sat, 3 Dec 2022 15:04:16 +0000 (15:04 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 3 Dec 2022 15:04:16 +0000 (15:04 +0000)
cookbooks/prometheus/templates/default/alert_rules.yml.erb

index 3dd1af873d8fdc8ef227327c5e7b64fc61e00506..be10977a43c2af56825c3c19416e2d0ef03c0b96 100644 (file)
@@ -263,6 +263,11 @@ groups:
           alertgroup: "{{ $labels.site }}"
   - name: mail
     rules:
+      - alert: exim down
+        expr: exim_up == 0
+        for: 5m
+        labels:
+          alertgroup: "{{ $labels.instance }}"
       - alert: exim queue length
         expr: exim_queue > exim_queue_limit
         for: 60m