From: Tom Hughes Date: Wed, 1 Dec 2021 18:38:58 +0000 (+0000) Subject: Add alert for mailman queue length X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/37a57aae5f41ce801a6f162e37de285761e23c46 Add alert for mailman queue length --- diff --git a/cookbooks/prometheus/templates/default/alert_rules.yml.erb b/cookbooks/prometheus/templates/default/alert_rules.yml.erb index 9a3609e03..562d31046 100644 --- a/cookbooks/prometheus/templates/default/alert_rules.yml.erb +++ b/cookbooks/prometheus/templates/default/alert_rules.yml.erb @@ -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