diff options
author | 2024-08-26 17:43:08 +0100 | |
---|---|---|
committer | 2024-08-26 17:43:08 +0100 | |
commit | 438b5bce5f229be3432ed7123ee4fb0f3f6296fb (patch) | |
tree | 3a1c5b36c5f7bcb1adc49a09af9fd1a923d791b5 | |
parent | Install prometheus-postfix-exporter (diff) |
Update indentation of new postfix prometheus rules
-rw-r--r-- | ansible/host_vars/lovelace/prometheus.yml | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/ansible/host_vars/lovelace/prometheus.yml b/ansible/host_vars/lovelace/prometheus.yml index 3ed97ba..6e7cb25 100644 --- a/ansible/host_vars/lovelace/prometheus.yml +++ b/ansible/host_vars/lovelace/prometheus.yml @@ -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 %} |