Skip to content

Commit

Permalink
fix: prevent alertmanager from adding a link to alertmanager. in slac…
Browse files Browse the repository at this point in the history
…k messages.
  • Loading branch information
robinbourianes-kalisio committed Dec 1, 2020
1 parent e940738 commit bdd0a14
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions configs/prometheus/alertmanager.yml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,9 @@ receivers:
api_url: '${SLACK_WEBHOOK_URL}'
channel: '${SLACK_CHANNEL}'
title: '${SUBDOMAIN}'
# override title_link with empty string to prevent alertmanager to add one.
title_link: ''
# prevent slack from making a link to the subdomain
# commented out since our alertmanager is currently too old (v0.17.0)
# mrkdwn_in: [ 'text' ]
text: '{{ if eq .Status "resolved" }}[RESOLVED] {{ end }}{{ .CommonAnnotations.summary }}'

0 comments on commit bdd0a14

Please sign in to comment.