-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure alertmanager to send e-mails
- Loading branch information
1 parent
e280762
commit e322365
Showing
3 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,8 @@ route: | |
matchers: | ||
- severity="page" | ||
continue: true | ||
- receiver: email | ||
continue: true | ||
|
||
receivers: | ||
- name: devops-team | ||
|
@@ -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
BIN
+67 Bytes
(120%)
kubernetes/namespaces/monitoring/alerts/alertmanager/secrets.yaml
Binary file not shown.