render all grafana alert annotations in ntfy
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user