Prometheus: Send permanent alert to hcio
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-04-17 21:02:37 +02:00
parent a351ea03a1
commit 3f90398862
2 changed files with 425 additions and 412 deletions

View File

@ -8,7 +8,8 @@ route:
repeat_interval: 1h
receiver: 'matrix-monitoring'
routes:
- receiver: 'email'
- receiver: 'hcio'
repeat_interval: 1h
matchers:
- alertname="PrometheusAlertmanagerE2eDeadManSwitch"
@ -21,6 +22,14 @@ receivers:
auth_username: '{{ prometheus.alertmanager.smtp.username }}'
auth_identity: '{{ prometheus.alertmanager.smtp.username }}'
auth_password: '{{ prometheus.alertmanager.smtp.password }}'
- name: 'hcio'
email_configs:
- to: '{{ prometheus.alertmanager.hcio.mail }}'
from: '"Alertmanager" <{{ prometheus.alertmanager.smtp.username }}>'
smarthost: 'mxe8cf.netcup.net:587'
auth_username: '{{ prometheus.alertmanager.smtp.username }}'
auth_identity: '{{ prometheus.alertmanager.smtp.username }}'
auth_password: '{{ prometheus.alertmanager.smtp.password }}'
- name: 'matrix-monitoring'
webhook_configs:
- url: 'http://alertmanager-matrix:3000/alerts?secret={{ prometheus.alertmanager.matrix.alertmanager_token }}'