From 2bd3d14a95561bcc4fa0e75635dea7ebce31c64f Mon Sep 17 00:00:00 2001 From: Malte Brandy Date: Tue, 1 Dec 2020 02:38:22 +0100 Subject: [PATCH] Add postfix alert rule --- nixos/roles/monitoring/rules.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nixos/roles/monitoring/rules.yml b/nixos/roles/monitoring/rules.yml index 8e70df55..6ec41b39 100644 --- a/nixos/roles/monitoring/rules.yml +++ b/nixos/roles/monitoring/rules.yml @@ -43,3 +43,9 @@ groups: severity: warning annotations: description: "mountpoint {{ $labels.mountpoint }} on {{ $labels.name }} out of inodes." + - alert: mailq + expr: postfix_showq_message_age_seconds_sum > 300 + for: 5m + labels: + severity: warning + description: "mail queue {{ $labels.queue }} on {{ $labels.instance }} has accumulated a waiting time of {{ $value }}s.