Skip to content

Commit

Permalink
Update indentation of new postfix prometheus rules
Browse files Browse the repository at this point in the history
  • Loading branch information
jb3 committed Aug 26, 2024
1 parent 37eefad commit 438b5bc
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions ansible/host_vars/lovelace/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,25 +141,25 @@ prometheus_rules: |
summary: Too many deadlocked tables
description: "PostgreSQL has dead-locks, value: {{ $value }}"
- 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.
- 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.
{% endraw %}

0 comments on commit 438b5bc

Please sign in to comment.