PrometheusAlert
PrometheusAlert copied to clipboard
钉钉怎么自定主题呢,不点击进去,能知道发什么告警。
原来 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 }}
现在好像只能再conf/app.conf title