From 37a57aae5f41ce801a6f162e37de285761e23c46 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 1 Dec 2021 18:38:58 +0000 Subject: [PATCH] Add alert for mailman queue length --- .../prometheus/templates/default/alert_rules.yml.erb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 -- 2.39.5