Greetings,
Need some help from the experts here. I created a template for constructing email body for Grafana alerts. Which btw was working fine. The email body had links to dashboard and it was grouped by “firing instances”.
I am not sure what changed after that, but I lost that settings. And the one I am having now is just a basic html format. The “Grouped by” is also empty.
This is my template,
{{ define “hc.message” }}
{{ if gt (len .Alerts.Firing) 0 }}
{{ range .Alerts.Firing }}
{{ if gt (len .Annotations) 0 }}
{{ .Annotations.summary }}
{{ end }}
{{ if gt (len .Labels) 0 }}
{{ .Labels.SortedPairs }}
{{ end }}
{{ end }}
{{ end }}
{{ end }}