]> git.openstreetmap.org Git - chef.git/commitdiff
Add alert for mailman queue length
authorTom Hughes <tom@compton.nu>
Wed, 1 Dec 2021 18:38:58 +0000 (18:38 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 1 Dec 2021 18:38:58 +0000 (18:38 +0000)
cookbooks/prometheus/templates/default/alert_rules.yml.erb

index 9a3609e03a1876f10a99f4bcfac63033e100b645..562d31046fbb2a610c4f25101b12d2f15b5d5d3c 100644 (file)
@@ -132,13 +132,20 @@ groups:
           alertgroup: "{{ $labels.instance }}"
   - name: mail
     rules:
-      - alert: mail queue length
+      - alert: exim queue length
         expr: exim_queue > exim_queue_limit
         for: 60m
         labels:
           alertgroup: mail
         annotations:
           queue_length: "{{ $value }}"
+      - alert: mailman queue length
+        expr: mailman_queue_length > 200
+        for: 60m
+        labels:
+          alertgroup: mail
+        annotations:
+          queue_length: "{{ $value }}"
   - name: mdadm
     rules:
       - alert: mdadm array inactive