-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
1 parent
c814370
commit 101829e
Showing
5 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
dependencies: | ||
- postfix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
- name: Install prometheus-postfix-exporter | ||
package: | ||
name: prometheus-postfix-exporter | ||
state: present | ||
tags: | ||
- role::prometheus-postfix-exporter |
22 changes: 22 additions & 0 deletions
22
kubernetes/namespaces/monitoring/alerts/alerts.d/mail.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |