diff --git a/k8s/monitoring/templates/alertmanager-slack-config.yaml b/k8s/monitoring/templates/alertmanager-slack-config.yaml index 9f416ee..4038f05 100644 --- a/k8s/monitoring/templates/alertmanager-slack-config.yaml +++ b/k8s/monitoring/templates/alertmanager-slack-config.yaml @@ -28,13 +28,13 @@ 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 }}` - *Description:* {{ .Annotations.description }} - *Graph:* <{{ .GeneratorURL }}|:chart_with_upwards_trend:> *Runbook:* <{{ .Annotations.runbook }}|:spiral_note_pad:> + {{"{{"}} range .Alerts{{"}}"}} + *Alert:* {{"{{"}} .Annotations.summary{{"}}"}} - `{{"{{"}} .Labels.severity{{"}}"}}` + *Description:* {{"{{"}} .Annotations.description{{"}}"}} + *Graph:* <{{"{{"}} .GeneratorURL{{"}}"}}|:chart_with_upwards_trend:> *Runbook:* <{{"{{"}} .Annotations.runbook{{"}}"}}|:spiral_note_pad:> *Details:* - {{ range .Labels.SortedPairs }} • *{{ .Name }}:* `{{ .Value }}` - {{ end }} - {{ end }} \ No newline at end of file + {{"{{"}} range .Labels.SortedPairs{{"}}"}} • *{{"{{"}} .Name{{"}}"}}:* `{{"{{"}} .Value{{"}}"}}` + {{"{{"}} end{{"}}"}} + {{"{{"}} end{{"}}"}} \ No newline at end of file