Merge pull request #240 from prometheus/slackfix

Allow markdown in Slack 'text' field
This commit is contained in:
Fabian Reinartz 2016-02-05 08:14:14 +01:00
commit 170906482d
1 changed files with 1 additions and 1 deletions

View File

@ -491,7 +491,7 @@ func (n *Slack) Notify(ctx context.Context, as ...*types.Alert) error {
Text: tmplHTML(n.conf.Text),
Fallback: tmplText(n.conf.Fallback),
Color: tmplText(n.conf.Color),
MrkdwnIn: []string{"fallback", "pretext"},
MrkdwnIn: []string{"fallback", "pretext", "text"},
}
req := &slackReq{
Channel: tmplText(n.conf.Channel),