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
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue