--- html: |- [{{ len .Alerts.Firing }}{{ if gt (len .Alerts.Firing) 1 }} ALERTS {{ else }} ALERT {{ end }}{{ .Status | toUpper }}] {{ .CommonLabels.alertname }}

View a Grafana graph of the expression that triggered {{ if gt (len .Alerts.Firing) 1 }}these alerts{{ else }}this alert{{ end }}

View {{ if gt (len .Alerts.Firing) 1 }}these alerts{{ else }}this alert{{ end }} in Alertmanager (Requires a BOSH SSH Tunnel)

{{ with index .Alerts 0 }}

Summary: {{ .Annotations.summary }}

Description: {{ .Annotations.description }}

{{ end }}
{{ if gt (len .Alerts.Firing) 1 }}Common labels across firing alerts:{{ else }}Labels:{{ end }}
    {{ range .CommonLabels.SortedPairs }}
  • {{ .Name }}: {{ .Value }}
  • {{ end }}
headers: subject: "[{{ len .Alerts.Firing }}{{ if gt (len .Alerts.Firing) 1 }} ALERTS {{ else }} ALERT {{ end }}{{ .Status | toUpper }}] {{ .CommonLabels.alertname }}"