Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown In Slack Alerts #251

Closed
nhproject opened this issue Feb 21, 2016 · 2 comments
Closed

Markdown In Slack Alerts #251

nhproject opened this issue Feb 21, 2016 · 2 comments

Comments

@nhproject
Copy link

Hi all,

Is it possible to combine markdown in the alerts' messages? In particular I'm referring to Slack.
I know Slack supports markdown lang.

Thanks!

@nathanielc
Copy link
Contributor

The alert message can contain whatever content you want. I am not sure whether slack will honor the markdown based on how we call the API but its worth a try.

@nhproject
Copy link
Author

https://github.com/influxdata/kapacitor/blob/master/services/slack/service.go#L63
@nathanielc Three parameters are shown in this section of the file: Fallback, Text, Color.
We probably need to add fourth parameter - "mrkdwn_in" - in order we will be able to work with markdown, and also mention that the text should work with markdown, like it is shown here:
https://api.slack.com/docs/formatting#message_formatting
in the attachments section.
(I'm not sure how to write this parameter using the GO api you used for this implementation)

nathanielc added a commit that referenced this issue Dec 6, 2016
Enable markdown in slack attachments #251
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants