Skip to content

Commit 798a4c0

Browse files
committed
Add alert for held & deferred messages in Postfix
1 parent add9fc3 commit 798a4c0

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

‎ansible/host_vars/lovelace/prometheus.yml‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,4 +177,21 @@ prometheus_rules: |
177177
https://en.wikipedia.org/wiki/List_of_SMTP_server_return_codes and
178178
`sudo journalctl -xeu postfix@-` may provide more information on
179179
the current issue.
180+
- alert: postfix/held-messages
181+
expr: postfix_showq_message_age_seconds_count{queue="hold"} > 0
182+
for: 0m
183+
labels:
184+
severity: warning
185+
requires_ack: "true"
186+
annotations:
187+
summary: Postfix has held messages (instance {{ $labels.instance }})
188+
description: "Postfix has messages in the hold queue."
189+
- alert: postfix/deferred-messages
190+
expr: postfix_showq_message_age_seconds_count{queue="deferred"} > 0
191+
for: 0m
192+
labels:
193+
severity: warning
194+
annotations:
195+
summary: Postfix has deferred messages (instance {{ $labels.instance }})
196+
description: "Postfix has messages in the deferred queue."
180197
{% endraw %}

0 commit comments

Comments
 (0)