include grafana alert annotations in ntfy messages

This commit is contained in:
2026-07-09 21:04:46 +02:00
parent 4c09725317
commit b8cd1c421c
@@ -260,8 +260,12 @@ in {
{{ end -}} {{ end -}}
{{ with index $labels "severity" }}Severity: {{ . }} {{ with index $labels "severity" }}Severity: {{ . }}
{{ end -}} {{ end -}}
{{ with index .Annotations "summary" }}Summary: {{ . }}
{{ else }}{{ with index $.CommonAnnotations "summary" }}Summary: {{ . }}
{{ end }}{{ end -}}
{{ with index .Annotations "description" }}Details: {{ . }} {{ with index .Annotations "description" }}Details: {{ . }}
{{ end -}} {{ else }}{{ with index $.CommonAnnotations "description" }}Details: {{ . }}
{{ end }}{{ end -}}
{{ with .GeneratorURL }}Source: {{ . }} {{ with .GeneratorURL }}Source: {{ . }}
{{ end }} {{ end }}
{{ end -}} {{ end -}}