Skip to content

Commit

Permalink
Improve alertmanager text e-mail format
Browse files Browse the repository at this point in the history
Already deployed.
  • Loading branch information
jchristgit committed Aug 26, 2024
1 parent 16c7d89 commit 458eeb8
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion kubernetes/namespaces/monitoring/alerts/alertmanager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,15 @@ receivers:
smarthost: mail.pydis.wtf:587
auth_username: [email protected]
auth_password_file: /opt/pydis/alertmanager/webhooks/EMAIL_PASSWORD
text: 'summary: {{ .CommonAnnotations.summary }}\ndescription: {{ .CommonAnnotations.description }}"'
text: |
{{ .CommonAnnotations.summary }}
{{ .CommonAnnotations.description }}
{{ if eq .Status "firing" }}{{ range .Alerts }}
{{ if .Labels.instance }}{{ .Labels.instance }}: {{ end }}{{ .Annotations.summary }}:
{{ .Annotations.description }}
{{ .GeneratorURL }}
{{ end }}{{ else }}Alert has resolved.{{ end }}

0 comments on commit 458eeb8

Please sign in to comment.