fix(alertmanager): remove <> from value
This commit is contained in:
parent
304547fe2f
commit
aa7085082a
@ -2,7 +2,7 @@
|
||||
{{ range .Alerts }}
|
||||
{{ if eq .Status "firing"}}🔥<b>{{ .Labels.alertname }}</b>🔥{{ else }}👌<b>{{ .Labels.alertname }}</b>👌{{ end }}
|
||||
<b>Labels:</b>{{ range $key, $value := .Labels }}{{ if ne $key "alertname" }}
|
||||
- {{ $key }}: {{ $value }}{{ end }}{{ end }}
|
||||
- {{ $key }}: {{ reReplaceAll "(<|>)+" "" $value }}{{ end }}{{ end }}
|
||||
<b>Annotations:</b>{{ range $key, $value := .Annotations }}
|
||||
- {{ $key }}: {{ reReplaceAll "(?s)(\\s+)LABELS = (.*)" "" $value }}{{ end }}
|
||||
<b>Start:</b> {{ .StartsAt.Local.Format "02/01/2006 15:04:05 MST" }}{{ if eq .Status "resolved"}}
|
||||
|
Loading…
Reference in New Issue
Block a user