Skip to content

Commit

Permalink
Configure alertmanager to send e-mails
Browse files Browse the repository at this point in the history
[email protected] currently forwards to me (configured as another
e-mail address on my account in FreeIPA), if other people are interested
we can set up a proper postfix virtual alias.
  • Loading branch information
jchristgit committed Aug 25, 2024
1 parent e280762 commit 5d5f0f5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions kubernetes/namespaces/monitoring/alerts/alertmanager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ route:
matchers:
- severity="page"
continue: true
- receiver: email
continue: true

receivers:
- name: devops-team
Expand All @@ -33,3 +35,12 @@ receivers:
pagerduty_configs:
- routing_key_file: "/opt/pydis/alertmanager/webhooks/PAGERDUTY_KEY"
url: https://events.pagerduty.com/v2/enqueue
- name: email
email_configs:
- to: [email protected]
send_resolved: true
from: [email protected]
smarthost: mail.pydis.wtf
auth_username: [email protected]
auth_password_file: /opt/pydis/alertmanager/webhooks/EMAIL_PASSWORD
text: 'summary: {{ .CommonAnnotations.summary }}\ndescription: {{ .CommonAnnotations.description }}"'
Binary file modified kubernetes/namespaces/monitoring/alerts/alertmanager/secrets.yaml
Binary file not shown.

0 comments on commit 5d5f0f5

Please sign in to comment.