ng_alert_notification.txt 992 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. {{Subject .Subject "{{.Title}}"}}
  2. {{.Title}}
  3. ----------------
  4. {{ .Alerts | len }} alert{{ if gt (len .Alerts) 1 }}s{{ end }} for
  5. {{ range .GroupLabels.SortedPairs }}
  6. {{ .Name }} = {{ .Value }}
  7. {{ end }}
  8. {{ if gt (len .Alerts.Firing) 0 }}({{ .Alerts.Firing | len }}) Firing{{ end }}
  9. {{ range .Alerts.Firing }}
  10. Labels:
  11. {{ range .Labels.SortedPairs }}
  12. {{ .Name }} = {{ .Value }}
  13. {{ end }}
  14. {{ if gt (len .Annotations) 0 }}
  15. Annotations:
  16. {{ end }}
  17. {{ range .Annotations.SortedPairs }}
  18. {{ .Name }} = {{ .Value }}
  19. {{ end }}
  20. {{ end }}{{ if gt (len .Alerts.Resolved) 0 }}({{ .Alerts.Resolved | len }}) Resolved{{ end
  21. }}
  22. {{ range .Alerts.Resolved }}
  23. Labels:
  24. {{ range .Labels.SortedPairs }}
  25. {{ .Name }} = {{ .Value }}
  26. {{ end }}
  27. {{ if gt (len .Annotations) 0 }}
  28. Annotations:
  29. {{ end }}
  30. {{ range .Annotations.SortedPairs }}
  31. {{ .Name }} = {{ .Value }}
  32. {{ end }}
  33. {{ end }}View your Alert rule:
  34. {{.RuleUrl}}
  35. Go to the Alerts page:
  36. {{.AlertPageUrl}}
  37. Sent by Grafana v{{.BuildVersion}} (c) 2022 Grafana Labs