aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kubernetes/namespaces/monitoring/alerts/alertmanager.yaml13
1 files changed, 12 insertions, 1 deletions
diff --git a/kubernetes/namespaces/monitoring/alerts/alertmanager.yaml b/kubernetes/namespaces/monitoring/alerts/alertmanager.yaml
index 2d994c9..f347b2b 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: [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 }}