add monitoring templates

This commit is contained in:
Victor Barba Martin 2021-11-04 17:57:38 +01:00
parent 53d681e054
commit 1662dbf3a1
1 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,8 @@ spec:
channel: '#monitoring-alerts'
iconURL: 'https://avatars3.githubusercontent.com/u/3380462'
sendResolved: true
title: '[{{ .Status | toUpper }}{{ if eq .Status "firing" }}:{{ .Alerts.Firing | len }}{{ end }}] Monitoring Event Notification'
title: |-
'[{{ .Status | toUpper }}{{ if eq .Status "firing" }}:{{ .Alerts.Firing | len }}{{ end }}] Monitoring Event Notification'
text: >-
{{ range .Alerts }}
*Alert:* {{ .Annotations.summary }} - `{{ .Labels.severity }}`