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