Last active
March 6, 2018 06:44
-
-
Save songjiayang/25e43aefabbfab204e54c382144eb3ba to your computer and use it in GitHub Desktop.
WeChat receiver message custom template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{ define "wechat.default.message" }} | |
{{ range .Alerts }} | |
告警级别:{{ .Labels.severity }} | |
告警类型:{{ .Labels.alertname }} | |
故障主机: {{ .Labels.instance }} | |
告警主题: {{ .Annotations.summary }} | |
告警详情: {{ .Annotations.description }} | |
====== | |
{{ end }} | |
{{ end }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment