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: |- +

{{ if eq .Status "firing" }}🚨 Alert: {{ .CommonAnnotations.summary }}{{ else }}βœ… Resolved: {{ .CommonAnnotations.summary }}{{ end }}

+

πŸ“ 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