Skip to content

Commit

Permalink
fix: Reformat Blackbox exporter alert text
Browse files Browse the repository at this point in the history
  • Loading branch information
grifonas committed Sep 12, 2024
1 parent 72136c2 commit 11d8b29
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions monitoring/assets/helm-values-monitoring.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ alertmanager:
url: '{{ template "__alert_silence_link" . }}'
text: |-
{{ range .Alerts -}}
*Notifying:* <!subteam^S01CGLMNT5G>
<!subteam^S01CGLMNT5G>
*Description:* {{ .Annotations.message }}
*Endpoint Info:*
{{- range $key, $value := .Labels }}
Expand All @@ -112,8 +112,8 @@ alertmanager:
{{- end }}
{{- end }}
*Alert Details:*
*alertname:* `{{ .Labels.alertname }}`
*endpoint:* `{{ .Labels.target }}`
*alertname:* `{{ .Labels.alertname }}`
*endpoint:* `{{ .Labels.target }}`
{{ end }}
title: '[{{ .Status | toUpper }} {{ if eq .Status "firing" }}:{{ .Alerts.Firing | len }} {{ end }}] {{ .CommonLabels.alertname }}'
- name: slack-receiver
Expand Down

0 comments on commit 11d8b29

Please sign in to comment.