tyo0/prometheus: simplify alert message

This commit is contained in:
Guanran Wang 2024-10-04 18:50:50 +08:00
parent 7d738d5336
commit 46ad3cad7e
Signed by: nyancat
GPG key ID: 91F97D9ED12639CF

View file

@ -162,15 +162,9 @@ in
let
tmpl = lib.escapeURL ''
{{ range .alerts }}- Status: {{ .status }}
Labels:
{{ range $k, $v := .labels }} - {{ $k }} = {{ $v }}
{{ end }}
Annotations:
{{ range $k, $v := .annotations }} - {{ $k }} = {{ $v }}
{{ end }}
Summary: {{ .annotations.summary }}
Description: {{ .annotations.description }}
Source: {{ .generatorURL }}
{{ end }}
'';
in