Hi!
Recently upgraded to Grafana 9.3.0 and teams alerts are not reporting with empty Value field, or with some number, however it used to be with information about tags for metrics.
I tried to change default alert message template, but nothing from information and examples over forums and github has not helped.
I think the issue is in my alert template, that is whu will paste it in here :
{{ define "myalert" }}
[{{.Status}}] {{ .Labels.alertname }}
{{ range . }}
Value:
{{ or .ValueString "[no value]" }}
{{ end }}
Labels:
[{{ range .Labels.SortedPairs }}]
{{ .Name }}: {{ .Value }}
{{ end }}
{{ if gt (len .Annotations) 0 }}
Annotations:
{{ range .Annotations.SortedPairs }}
{{ .Name }}: {{ .Value }}
{{ end }}
{{ end }}
{{ end }}
{{ define "mymessage" }}
{{ if gt (len .Alerts.Firing) 0 }}
{{ len .Alerts.Firing }} firing:
{{ range .Alerts.Firing }} {{ template "myalert" .}} {{ end }}
{{ end }}
{{ if gt (len .Alerts.Resolved) 0 }}
{{ len .Alerts.Resolved }} resolved:
{{ range .Alerts.Resolved }} {{ template "myalert" .}} {{ end }}
{{ end }}
{{ end }}