| 1 |
title: | |
| 2 |
{{- if eq .status "firing" }} |
| 3 |
🚨 Alert: {{ (first .alerts).labels.alertname }} |
| 4 |
{{- else if eq .status "resolved" }} |
| 5 |
✅ Resolved: {{ (first .alerts).labels.alertname }} |
| 6 |
{{- else }} |
| 7 |
{{ fail "Unsupported Alertmanager status." }} |
| 8 |
{{- end }} |
| 9 |
message: | |
| 10 |
Status: {{ .status | title }} |
| 11 |
Receiver: {{ .receiver }} |
| 12 |
|
| 13 |
{{- range .alerts }} |
| 14 |
Alert: {{ .labels.alertname }} |
| 15 |
Instance: {{ .labels.instance }} |
| 16 |
Severity: {{ .labels.severity }} |
| 17 |
Starts at: {{ .startsAt }} |
| 18 |
{{- if .endsAt }}Ends at: {{ .endsAt }}{{ end }} |
| 19 |
{{- if .annotations.summary }} |
| 20 |
Summary: {{ .annotations.summary }} |
| 21 |
{{- end }} |
| 22 |
{{- if .annotations.description }} |
| 23 |
Description: {{ .annotations.description }} |
| 24 |
{{- end }} |
| 25 |
Source: {{ .generatorURL }} |
| 26 |
|
| 27 |
{{ end }} |