tyo0/prometheus: simplify alert message
This commit is contained in:
parent
7d738d5336
commit
46ad3cad7e
1 changed files with 2 additions and 8 deletions
|
@ -162,15 +162,9 @@ in
|
||||||
let
|
let
|
||||||
tmpl = lib.escapeURL ''
|
tmpl = lib.escapeURL ''
|
||||||
{{ range .alerts }}- Status: {{ .status }}
|
{{ range .alerts }}- Status: {{ .status }}
|
||||||
|
Summary: {{ .annotations.summary }}
|
||||||
Labels:
|
Description: {{ .annotations.description }}
|
||||||
{{ range $k, $v := .labels }} - {{ $k }} = {{ $v }}
|
|
||||||
{{ end }}
|
|
||||||
Annotations:
|
|
||||||
{{ range $k, $v := .annotations }} - {{ $k }} = {{ $v }}
|
|
||||||
{{ end }}
|
|
||||||
Source: {{ .generatorURL }}
|
Source: {{ .generatorURL }}
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
|
|
Loading…
Reference in a new issue