Add default templates

This commit is contained in:
Fabian Reinartz 2015-10-11 13:32:34 +02:00
parent 3a2db95a8e
commit 8e8052ad1b

39
template/default.tmpl Normal file
View File

@ -0,0 +1,39 @@
{{ 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 "email_default_header" }}From: "Prometheus Alertmanager" <{{ .From }}>
To: {{ .To }}
Date: {{ .Date }}
Subject: [{{ .Alerts.Status }}]
{{ end }}
{{ define "email_default_plain" }}
{{ range .Alerts }}
{{ .String }}
{{ end }}
{{ end }}
{{ define "email_default_html" }}
{{ range .Alerts }}
{{ .String }}
{{ end }}
{{ end }}