Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure alertmanager to send e-mails #496

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ansible/roles/postfix/templates/virtual.j2
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ staff administrators
cloudflare joe,cj
netcup joe,cj
linode joe,cj
devops-alerts jc

# Admin Domain Email
conferences stelercus
Expand Down
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 not shown.
Loading