From b6e411b9852b2b0dc5cb9a7d333352845363148d Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 3 Dec 2022 15:04:16 +0000 Subject: [PATCH] Add an alert for exim being down --- cookbooks/prometheus/templates/default/alert_rules.yml.erb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cookbooks/prometheus/templates/default/alert_rules.yml.erb b/cookbooks/prometheus/templates/default/alert_rules.yml.erb index 3dd1af873..be10977a4 100644 --- a/cookbooks/prometheus/templates/default/alert_rules.yml.erb +++ b/cookbooks/prometheus/templates/default/alert_rules.yml.erb @@ -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 -- 2.39.5