PrometheusAlert icon indicating copy to clipboard operation
PrometheusAlert copied to clipboard

钉钉怎么自定主题呢,不点击进去,能知道发什么告警。

Open xiaoqiang1994 opened this issue 2 years ago • 0 comments

原来 prometheus-webhook-dingtalk 模板是这样的。 {{ 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 }}

image

现在好像只能再conf/app.conf title

xiaoqiang1994 avatar Dec 27 '23 05:12 xiaoqiang1994