render all grafana alert annotations in ntfy

This commit is contained in:
2026-07-09 21:11:03 +02:00
parent b8cd1c421c
commit 2e316813f5
@@ -260,11 +260,12 @@ in {
{{ end -}}
{{ with index $labels "severity" }}Severity: {{ . }}
{{ end -}}
{{ with index .Annotations "summary" }}Summary: {{ . }}
{{ else }}{{ with index $.CommonAnnotations "summary" }}Summary: {{ . }}
{{ end }}{{ end -}}
{{ with index .Annotations "description" }}Details: {{ . }}
{{ else }}{{ with index $.CommonAnnotations "description" }}Details: {{ . }}
{{ with .Annotations.SortedPairs }}Annotations:
{{ range . }}- {{ .Name }}: {{ .Value }}
{{ end -}}
{{ else }}{{ with $.CommonAnnotations.SortedPairs }}Annotations:
{{ range . }}- {{ .Name }}: {{ .Value }}
{{ end -}}
{{ end }}{{ end -}}
{{ with .GeneratorURL }}Source: {{ . }}
{{ end }}