2020-08-12 15:53:56 +00:00
|
|
|
{{ define "__alertmanager" }}Alertmanager{{ end }}
|
2019-08-28 08:01:47 +00:00
|
|
|
{{ define "__alertmanagerURL" }}{{ .ExternalURL }}/#/alerts?receiver={{ .Receiver | urlquery }}{{ end }}
|
2015-11-26 17:19:46 +00:00
|
|
|
|
2015-11-30 17:00:38 +00:00
|
|
|
{{ define "__subject" }}[{{ .Status | toUpper }}{{ if eq .Status "firing" }}:{{ .Alerts.Firing | len }}{{ end }}] {{ .GroupLabels.SortedPairs.Values | join " " }} {{ if gt (len .CommonLabels) (len .GroupLabels) }}({{ with .CommonLabels.Remove .GroupLabels.Names }}{{ .Values | join " " }}{{ end }}){{ end }}{{ end }}
|
2015-11-26 17:19:46 +00:00
|
|
|
{{ define "__description" }}{{ end }}
|
|
|
|
|
2016-01-05 19:52:08 +00:00
|
|
|
{{ define "__text_alert_list" }}{{ range . }}Labels:
|
2015-11-30 17:00:38 +00:00
|
|
|
{{ range .Labels.SortedPairs }} - {{ .Name }} = {{ .Value }}
|
2016-01-05 19:52:08 +00:00
|
|
|
{{ end }}Annotations:
|
2015-11-30 17:00:38 +00:00
|
|
|
{{ range .Annotations.SortedPairs }} - {{ .Name }} = {{ .Value }}
|
2016-02-16 14:58:18 +00:00
|
|
|
{{ end }}Source: {{ .GeneratorURL }}
|
2015-11-26 17:19:46 +00:00
|
|
|
{{ end }}{{ end }}
|
|
|
|
|
2015-10-11 11:32:34 +00:00
|
|
|
|
2015-11-25 14:49:26 +00:00
|
|
|
{{ define "slack.default.title" }}{{ template "__subject" . }}{{ end }}
|
2015-11-30 12:52:41 +00:00
|
|
|
{{ define "slack.default.username" }}{{ template "__alertmanager" . }}{{ end }}
|
|
|
|
{{ define "slack.default.fallback" }}{{ template "slack.default.title" . }} | {{ template "slack.default.titlelink" . }}{{ end }}
|
2018-10-23 09:22:23 +00:00
|
|
|
{{ define "slack.default.callbackid" }}{{ end }}
|
2015-10-29 13:34:24 +00:00
|
|
|
{{ define "slack.default.pretext" }}{{ end }}
|
2015-11-26 17:19:46 +00:00
|
|
|
{{ define "slack.default.titlelink" }}{{ template "__alertmanagerURL" . }}{{ end }}
|
2016-02-16 10:54:30 +00:00
|
|
|
{{ define "slack.default.iconemoji" }}{{ end }}
|
2016-05-12 18:51:22 +00:00
|
|
|
{{ define "slack.default.iconurl" }}{{ end }}
|
2015-11-30 12:52:41 +00:00
|
|
|
{{ define "slack.default.text" }}{{ end }}
|
2017-12-12 21:50:41 +00:00
|
|
|
{{ define "slack.default.footer" }}{{ end }}
|
2015-10-11 11:32:34 +00:00
|
|
|
|
2015-11-26 17:19:46 +00:00
|
|
|
|
2015-10-29 13:34:24 +00:00
|
|
|
{{ define "pagerduty.default.description" }}{{ template "__subject" . }}{{ end }}
|
2015-11-25 14:49:26 +00:00
|
|
|
{{ define "pagerduty.default.client" }}{{ template "__alertmanager" . }}{{ end }}
|
|
|
|
{{ define "pagerduty.default.clientURL" }}{{ template "__alertmanagerURL" . }}{{ end }}
|
2015-11-26 17:19:46 +00:00
|
|
|
{{ define "pagerduty.default.instances" }}{{ template "__text_alert_list" . }}{{ end }}
|
2015-10-29 13:34:24 +00:00
|
|
|
|
2015-10-11 11:32:34 +00:00
|
|
|
|
2016-07-12 12:36:20 +00:00
|
|
|
{{ define "opsgenie.default.message" }}{{ template "__subject" . }}{{ end }}
|
|
|
|
{{ define "opsgenie.default.description" }}{{ .CommonAnnotations.SortedPairs.Values | join " " }}
|
|
|
|
{{ if gt (len .Alerts.Firing) 0 -}}
|
|
|
|
Alerts Firing:
|
|
|
|
{{ template "__text_alert_list" .Alerts.Firing }}
|
|
|
|
{{- end }}
|
|
|
|
{{ if gt (len .Alerts.Resolved) 0 -}}
|
|
|
|
Alerts Resolved:
|
|
|
|
{{ template "__text_alert_list" .Alerts.Resolved }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
2015-11-26 17:19:46 +00:00
|
|
|
{{ define "opsgenie.default.source" }}{{ template "__alertmanagerURL" . }}{{ end }}
|
2015-11-24 22:29:25 +00:00
|
|
|
|
2015-11-26 17:19:46 +00:00
|
|
|
|
2017-12-09 15:20:22 +00:00
|
|
|
{{ define "wechat.default.message" }}{{ template "__subject" . }}
|
|
|
|
{{ .CommonAnnotations.SortedPairs.Values | join " " }}
|
|
|
|
{{ if gt (len .Alerts.Firing) 0 -}}
|
|
|
|
Alerts Firing:
|
|
|
|
{{ template "__text_alert_list" .Alerts.Firing }}
|
|
|
|
{{- end }}
|
|
|
|
{{ if gt (len .Alerts.Resolved) 0 -}}
|
|
|
|
Alerts Resolved:
|
|
|
|
{{ template "__text_alert_list" .Alerts.Resolved }}
|
|
|
|
{{- end }}
|
|
|
|
AlertmanagerUrl:
|
|
|
|
{{ template "__alertmanagerURL" . }}
|
|
|
|
{{- end }}
|
2018-06-24 12:02:21 +00:00
|
|
|
{{ define "wechat.default.to_user" }}{{ end }}
|
|
|
|
{{ define "wechat.default.to_party" }}{{ end }}
|
|
|
|
{{ define "wechat.default.to_tag" }}{{ end }}
|
|
|
|
{{ define "wechat.default.agent_id" }}{{ end }}
|
2017-12-09 15:20:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2017-07-03 09:44:53 +00:00
|
|
|
{{ define "victorops.default.state_message" }}{{ .CommonAnnotations.SortedPairs.Values | join " " }}
|
|
|
|
{{ if gt (len .Alerts.Firing) 0 -}}
|
|
|
|
Alerts Firing:
|
|
|
|
{{ template "__text_alert_list" .Alerts.Firing }}
|
|
|
|
{{- end }}
|
|
|
|
{{ if gt (len .Alerts.Resolved) 0 -}}
|
|
|
|
Alerts Resolved:
|
|
|
|
{{ template "__text_alert_list" .Alerts.Resolved }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
{{ define "victorops.default.entity_display_name" }}{{ template "__subject" . }}{{ end }}
|
2017-03-24 14:06:39 +00:00
|
|
|
{{ define "victorops.default.monitoring_tool" }}{{ template "__alertmanager" . }}{{ end }}
|
2016-07-03 15:33:44 +00:00
|
|
|
|
2015-11-26 17:19:46 +00:00
|
|
|
{{ define "email.default.subject" }}{{ template "__subject" . }}{{ end }}
|
2015-10-11 15:09:59 +00:00
|
|
|
{{ define "email.default.html" }}
|
2015-12-08 17:29:31 +00:00
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
2016-02-16 14:58:18 +00:00
|
|
|
<!--
|
|
|
|
Style and HTML derived from https://github.com/mailgun/transactional-email-templates
|
|
|
|
|
|
|
|
|
|
|
|
The MIT License (MIT)
|
|
|
|
|
|
|
|
Copyright (c) 2014 Mailgun
|
|
|
|
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
|
|
in the Software without restriction, including without limitation the rights
|
|
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
|
|
|
|
The above copyright notice and this permission notice shall be included in all
|
|
|
|
copies or substantial portions of the Software.
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
|
SOFTWARE.
|
|
|
|
-->
|
2015-12-08 17:29:31 +00:00
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
|
2016-02-16 14:58:18 +00:00
|
|
|
<head style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
|
|
|
|
<meta name="viewport" content="width=device-width" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;" />
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;" />
|
|
|
|
<title style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">{{ template "__subject" . }}</title>
|
2015-12-08 17:29:31 +00:00
|
|
|
|
|
|
|
</head>
|
|
|
|
|
2016-02-16 14:58:18 +00:00
|
|
|
<body itemscope="" itemtype="http://schema.org/EmailMessage" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none; height: 100%; line-height: 1.6em; width: 100% !important; background-color: #f6f6f6; margin: 0; padding: 0;" bgcolor="#f6f6f6">
|
2015-12-08 17:29:31 +00:00
|
|
|
|
|
|
|
<table style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; width: 100%; background-color: #f6f6f6; margin: 0;" bgcolor="#f6f6f6">
|
|
|
|
<tr style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
|
|
|
|
<td style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;" valign="top"></td>
|
|
|
|
<td width="600" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; display: block !important; max-width: 600px !important; clear: both !important; width: 100% !important; margin: 0 auto; padding: 0;" valign="top">
|
|
|
|
<div style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; max-width: 600px; display: block; margin: 0 auto; padding: 0;">
|
|
|
|
<table width="100%" cellpadding="0" cellspacing="0" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; border-radius: 3px; background-color: #fff; margin: 0; border: 1px solid #e9e9e9;" bgcolor="#fff">
|
|
|
|
<tr style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
|
|
|
|
<td style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 16px; vertical-align: top; color: #fff; font-weight: 500; text-align: center; border-radius: 3px 3px 0 0; background-color: #E6522C; margin: 0; padding: 20px;" align="center" bgcolor="#E6522C" valign="top">
|
|
|
|
{{ .Alerts | len }} alert{{ if gt (len .Alerts) 1 }}s{{ end }} for {{ range .GroupLabels.SortedPairs }}
|
2016-07-03 15:33:44 +00:00
|
|
|
{{ .Name }}={{ .Value }}
|
2015-12-08 17:29:31 +00:00
|
|
|
{{ end }}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
|
|
|
|
<td style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 10px;" valign="top">
|
|
|
|
<table width="100%" cellpadding="0" cellspacing="0" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
|
|
|
|
<tr style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
|
|
|
|
<td style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;" valign="top">
|
|
|
|
<a href="{{ template "__alertmanagerURL" . }}" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; color: #FFF; text-decoration: none; line-height: 2em; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 5px; text-transform: capitalize; background-color: #348eda; margin: 0; border-color: #348eda; border-style: solid; border-width: 10px 20px;">View in {{ template "__alertmanager" . }}</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{ if gt (len .Alerts.Firing) 0 }}
|
|
|
|
<tr style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
|
|
|
|
<td style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;" valign="top">
|
|
|
|
<strong style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">[{{ .Alerts.Firing | len }}] Firing</strong>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{ end }}
|
|
|
|
{{ range .Alerts.Firing }}
|
|
|
|
<tr style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
|
|
|
|
<td style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;" valign="top">
|
|
|
|
<strong style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">Labels</strong><br style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;" />
|
|
|
|
{{ range .Labels.SortedPairs }}{{ .Name }} = {{ .Value }}<br style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;" />{{ end }}
|
|
|
|
{{ if gt (len .Annotations) 0 }}<strong style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">Annotations</strong><br style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;" />{{ end }}
|
|
|
|
{{ range .Annotations.SortedPairs }}{{ .Name }} = {{ .Value }}<br style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;" />{{ end }}
|
2016-02-16 14:58:18 +00:00
|
|
|
<a href="{{ .GeneratorURL }}" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; color: #348eda; text-decoration: underline; margin: 0;">Source</a><br style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;" />
|
2015-12-08 17:29:31 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ if gt (len .Alerts.Resolved) 0 }}
|
|
|
|
{{ if gt (len .Alerts.Firing) 0 }}
|
|
|
|
<tr style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
|
|
|
|
<td style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;" valign="top">
|
|
|
|
<br style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;" />
|
|
|
|
<hr style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;" />
|
|
|
|
<br style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{ end }}
|
|
|
|
<tr style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
|
|
|
|
<td style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;" valign="top">
|
|
|
|
<strong style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">[{{ .Alerts.Resolved | len }}] Resolved</strong>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{ end }}
|
|
|
|
{{ range .Alerts.Resolved }}
|
|
|
|
<tr style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
|
|
|
|
<td style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;" valign="top">
|
|
|
|
<strong style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">Labels</strong><br style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;" />
|
|
|
|
{{ range .Labels.SortedPairs }}{{ .Name }} = {{ .Value }}<br style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;" />{{ end }}
|
|
|
|
{{ if gt (len .Annotations) 0 }}<strong style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">Annotations</strong><br style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;" />{{ end }}
|
|
|
|
{{ range .Annotations.SortedPairs }}{{ .Name }} = {{ .Value }}<br style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;" />{{ end }}
|
2016-02-16 14:58:18 +00:00
|
|
|
<a href="{{ .GeneratorURL }}" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; color: #348eda; text-decoration: underline; margin: 0;">Source</a><br style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;" />
|
2015-12-08 17:29:31 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{ end }}
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<div style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; width: 100%; clear: both; color: #999; margin: 0; padding: 20px;">
|
|
|
|
<table width="100%" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
|
|
|
|
<tr style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;">
|
2016-02-16 14:58:18 +00:00
|
|
|
<td style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 12px; vertical-align: top; text-align: center; color: #999; margin: 0; padding: 0 0 20px;" align="center" valign="top"><a href="{{ .ExternalURL }}" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 12px; color: #999; text-decoration: underline; margin: 0;">Sent by {{ template "__alertmanager" . }}</a></td>
|
2015-12-08 17:29:31 +00:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div></div>
|
|
|
|
</td>
|
|
|
|
<td style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;" valign="top"></td>
|
|
|
|
</tr>
|
2015-10-20 07:22:36 +00:00
|
|
|
</table>
|
|
|
|
|
2015-12-08 17:29:31 +00:00
|
|
|
</body>
|
|
|
|
</html>
|
2015-10-20 07:22:36 +00:00
|
|
|
|
2015-10-29 13:34:24 +00:00
|
|
|
{{ end }}
|
2016-02-26 08:35:00 +00:00
|
|
|
|
|
|
|
{{ define "pushover.default.title" }}{{ template "__subject" . }}{{ end }}
|
|
|
|
{{ define "pushover.default.message" }}{{ .CommonAnnotations.SortedPairs.Values | join " " }}
|
2016-04-27 08:46:17 +00:00
|
|
|
{{ if gt (len .Alerts.Firing) 0 }}
|
|
|
|
Alerts Firing:
|
|
|
|
{{ template "__text_alert_list" .Alerts.Firing }}
|
|
|
|
{{ end }}
|
|
|
|
{{ if gt (len .Alerts.Resolved) 0 }}
|
|
|
|
Alerts Resolved:
|
|
|
|
{{ template "__text_alert_list" .Alerts.Resolved }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2016-02-26 08:35:00 +00:00
|
|
|
{{ define "pushover.default.url" }}{{ template "__alertmanagerURL" . }}{{ end }}
|