{{ $numberOfFiringInstance := (len .Alerts.Firing) }}
{{ $numberOfResolvedAlerts := (len .Alerts.Resolved) }}
{{ if eq (.GroupLabels.SortedPairs.Names | join ",") "alertname,grafana_folder" }}
📁 {{ .GroupLabels.grafana_folder }} › {{ .GroupLabels.alertname }}
|
{{ else }}
📁 Grouped by
{{ range .GroupLabels.SortedPairs }}
{{ .Name }}={{ .Value }}
{{ end }}
|
{{ end }}
|
{{ if .Message }}
{{ range $line := (splitList "\n" .Message) }}
{{ $line }}
{{ end }}
|
|
|
{{ else }}{{ if .Alerts.Firing }}
🔥 {{ .Alerts.Firing | len }} firing instances
|
|
{{ range .Alerts.Firing }}
{{ if gt (len .GeneratorURL) 0 }}
{{ end }}
|
{{ if .ImageURL }}
{{ end }}{{ if .EmbeddedImage }}
{{ end }}
{{ if .Annotations.summary }}
Summary
|
{{- .Annotations.summary -}}
|
{{ end }}{{ if .Annotations.description }}
Description
|
{{ range $line := (splitList "\n" .Annotations.description) }}
{{ $line }}
{{ end }}
|
{{ end }}
|
{{ if .Values }}
{{ range $refID, $value := .Values }}
{{ $refID }}={{ $value }}
{{ end }}
|
|
|
{{ end }}
{{ if .Labels.SortedPairs }}
Labels
|
{{ range .Labels.SortedPairs }}
{{ .Name }}
|
{{ .Value }}
|
{{ end }}
|
{{ end }}{{ if .Annotations.SortedPairs }}
Annotations
|
{{ range .Annotations.SortedPairs }}
{{ .Name }}
|
{{ .Value }}
|
{{ end }}
|
{{ end }}
|
{{ if .SilenceURL }}
{{ end }}{{ if .Annotations.runbook_url }}
{{ end }}{{ if .DashboardURL }}
{{ end }}{{ if .PanelURL }}
{{ end }}
|
Observed {{ ago .StartsAt }} before this notification was delivered, at {{ .StartsAt }}
|
|
|
{{ end }}{{ end }}{{ if .Alerts.Resolved }}
✅ {{ .Alerts.Resolved | len }} resolved instances
|
|
{{ range .Alerts.Resolved }}
{{ if gt (len .GeneratorURL) 0 }}
{{ end }}
|
{{ if .ImageURL }}
{{ end }}{{ if .EmbeddedImage }}
{{ end }}
{{ if .Annotations.summary }}
Summary
|
{{- .Annotations.summary -}}
|
{{ end }}{{ if .Annotations.description }}
Description
|
{{ range $line := (splitList "\n" .Annotations.description) }}
{{ $line }}
{{ end }}
|
{{ end }}
|
{{ if .Values }}
{{ range $refID, $value := .Values }}
{{ $refID }}={{ $value }}
{{ end }}
|
|
|
{{ end }}
{{ if .Labels.SortedPairs }}
Labels
|
{{ range .Labels.SortedPairs }}
{{ .Name }}
|
{{ .Value }}
|
{{ end }}
|
{{ end }}{{ if .Annotations.SortedPairs }}
Annotations
|
{{ range .Annotations.SortedPairs }}
{{ .Name }}
|
{{ .Value }}
|
{{ end }}
|
{{ end }}
|
{{ if .SilenceURL }}
{{ end }}{{ if .Annotations.runbook_url }}
{{ end }}{{ if .DashboardURL }}
{{ end }}{{ if .PanelURL }}
{{ end }}
|
Observed {{ ago .StartsAt }} before this notification was delivered, at {{ .StartsAt }}
|
|
|
{{ end }}{{ end }}{{ end }}