{{ define "slack.default.fallback" }} fallback {{ end }} {{ define "slack.default.pretext" }} pre text {{ end }} {{ define "slack.default.title" }} Title {{ end }} {{ define "slack.default.titlelink" }} http://localhost:9090 {{ end }} {{ define "slack.default.text" }} my text my text my text {{ end }} {{ define "pagerduty.default.description" }}{{ .GroupLabels }} [{{ len .Alerts }} instance{{ if gt (len .Alerts) 1 }}s{{ end }}]{{ end }} {{ define "email.default.header" }}From: "Prometheus Alertmanager" <{{ .From }}> To: {{ .To }} Date: {{ .Date }} Subject: [{{ .Alerts.Status }}] {{ .GroupLabels }} Content-Type: text/html; charset=UTF-8 {{ end }} {{ define "email.default.html" }} {{/* The following is the readable HTML code for the mail template. It has to be inlined, e.g. by http://templates.mailchimp.com/resources/inline-css/. The inlined output is inserted after this comment. ---- {{ range .Alerts }} {{ end }}

{{ len .Alerts }} alert{{ if gt (len .Alerts) 1 }}s{{ end }} for {{ .GroupLabels }}

    {{ range $label, $value := .Labels }}
  • {{ $label }} {{ $value }}
  • {{ end }}
    {{ range $label, $value := .Annotations }}
  • {{ $label }} {{ $value }}
  • {{ end }}
--- Template end, the following is the inlined version of the above. */}} {{ range .Alerts }} {{ end }}

{{ len .Alerts }} alert{{ if gt (len .Alerts) 1 }}s{{ end }} for {{ .GroupLabels }}

    {{ range $label, $value := .Labels }}
  • {{ $label }} {{ $value }}
  • {{ end }}
    {{ range $label, $value := .Annotations }}
  • {{ $label }} {{ $value }}
  • {{ end }}
{{ end }}