diff --git a/altermanager/alertmanager-config.yaml b/altermanager/alertmanager-config.yaml index 3d712acb..f37df70c 100644 --- a/altermanager/alertmanager-config.yaml +++ b/altermanager/alertmanager-config.yaml @@ -37,16 +37,21 @@ spec: sendResolved: true headers: - key: Subject - value: 'π¨Freeleaps Alert: {{ .CommonAnnotations.summary }}' + value: '{{ if eq .Status "firing" }}π¨ Freeleaps Alert: {{ .CommonAnnotations.summary }}{{ else }}β Freeleaps Resolved: {{ .CommonAnnotations.summary }}{{ end }}' html: |- +
π AlertName: {{ .CommonLabels.alertname }}
+π§ Service: {{ .CommonLabels.service }}
+π§ Pod: {{ .CommonLabels.pod }}({{ .CommonLabels.instance }})
+π·οΈ Severity: {{ .CommonLabels.severity }}
+{{ if eq .Status "firing" }}π΄ Status:{{ else }}π’ Status:{{ end }} {{ .Status | toUpper }}
π Description: {{ .CommonAnnotations.description }}
-{{ if eq .Status "firing" }}π΄ Status: {{ .Status | toUpper }}{{ else }}π’ Status: {{ .Status | toUpper }}{{ end }}
π Runbook: {{ .CommonAnnotations.runbook_url }}
name: email route: groupBy: - severity - groupInterval: 30s + groupInterval: 5m receiver: email - groupWait: 30s - repeatInterval: 1m + groupWait: 5m + repeatInterval: 6h