add monitoring templates

This commit is contained in:
Victor Barba Martin 2021-11-04 18:59:26 +01:00
parent d78d637be1
commit 9a3aeb5103
2 changed files with 2 additions and 2 deletions

View File

@ -30,8 +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 }}`