diff options
author | 2024-08-26 17:49:22 +0200 | |
---|---|---|
committer | 2024-08-26 17:33:31 +0100 | |
commit | efb9fa9194ff5f70fe027b945787cbc34293db05 (patch) | |
tree | e7534ba9898b5b524199b526068a6a126f967e85 /kubernetes | |
parent | Stop installing libsasl2-modules-ldap (diff) |
Install prometheus-postfix-exporter
As a data-obsessed administrator I want to have more data such that I
can widen my sense of power.
This also installs rsyslog, because prometheus-postfix-exporter doesn't
work with journald's binary log format.
Diffstat (limited to 'kubernetes')
-rw-r--r-- | kubernetes/namespaces/monitoring/alerts/alerts.d/mail.yaml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/kubernetes/namespaces/monitoring/alerts/alerts.d/mail.yaml b/kubernetes/namespaces/monitoring/alerts/alerts.d/mail.yaml new file mode 100644 index 0000000..39f6a3e --- /dev/null +++ b/kubernetes/namespaces/monitoring/alerts/alerts.d/mail.yaml @@ -0,0 +1,22 @@ +groups: + - name: postfix + rules: + - alert: postfix/down + expr: postfix_up != 1 + for: 5m + labels: + severity: warning + annotations: + summary: Postfix is down (instance {{ $labels.instance }}) + - alert: postfix/smtp-temporary-errors + expr: rate(postfix_smtpd_messages_rejected_total{code=~"^4.*"}[15m]) > 0 + for: 0m + labels: + severity: warning + annotations: + summary: Postfix is rejecting messages due to errors (instance {{ $labels.instance }}) + description: Postfix has seen code {{ $labels.code }} errors recently + and temporarily rejected emails. + https://en.wikipedia.org/wiki/List_of_SMTP_server_return_codes and + `sudo journalctl -xeu postfix@-` may provide more information on + the current issue. |