diff --git a/kubernetes/namespaces/monitoring/alerts/alertmanager.yaml b/kubernetes/namespaces/monitoring/alerts/alertmanager.yaml index 2d994c97..f347b2bc 100644 --- a/kubernetes/namespaces/monitoring/alerts/alertmanager.yaml +++ b/kubernetes/namespaces/monitoring/alerts/alertmanager.yaml @@ -43,4 +43,15 @@ receivers: smarthost: mail.pydis.wtf:587 auth_username: alertmanager@int.pydis.wtf 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 }}