From 4cad51b2b74553dc03a7faef7600e3b29c983d55 Mon Sep 17 00:00:00 2001 From: "lin.huang" Date: Wed, 15 Nov 2023 15:17:03 +0800 Subject: [PATCH] feature: add alertmanager function --- config/email.tmpl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config/email.tmpl b/config/email.tmpl index 9de3463ce..f0ca6c282 100644 --- a/config/email.tmpl +++ b/config/email.tmpl @@ -1,6 +1,6 @@ {{ define "email.to.html" }} {{ range .Alerts }} ---------------------------------------------------------- +-------------------------openim alert---------------------
告警程序: prometheus_alert
告警级别: {{ .Labels.severity }} 级
告警类型: {{ .Labels.alertname }}
@@ -8,6 +8,8 @@ 故障服务: {{ .Labels.job }}
告警主题: {{ .Annotations.summary }}
触发时间: {{ .StartsAt.Format "2020-01-02 15:04:05"}}
----------------------------------------------------------- +----------------------------------------------------------
+
+
{{ end }} {{ end }} \ No newline at end of file