Skip to content

alerting: update Slack configuration#1025

Merged
brian-brazil merged 2 commits intoprometheus:masterfrom
simonpasquier:update-slack-config
May 18, 2018
Merged

alerting: update Slack configuration#1025
brian-brazil merged 2 commits intoprometheus:masterfrom
simonpasquier:update-slack-config

Conversation

@simonpasquier
Copy link
Member

Fixes #501.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
```yaml
title: <tmpl_string>
value: <tmpl_string>
[ short: <boolean> | default = slack_config.short_fields ]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

slack_config.actions?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I don't get your remark.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You had this at a different indentation previously


# API request data as defined by the Slack webhook API.
[ color: <tmpl_string> | default = '{{ if eq .Status "firing" }}danger{{ else }}good{{ end }}' ]
[ icon_emoji: <tmpl_string> ]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At this stage we should probably sort alphabetically

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is better (for now) to keep the parameters that go into the webhook notification separated from the parameters that control the attachment because of the Slack API documentation which keeps them apart.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
@simonpasquier
Copy link
Member Author

@mpalmer @robcomcast please take a look since you've reported on the original issue.

@brian-brazil brian-brazil merged commit 6bcbe85 into prometheus:master May 18, 2018
@simonpasquier simonpasquier deleted the update-slack-config branch July 11, 2019 09:36
aylei pushed a commit to aylei/docs that referenced this pull request Oct 28, 2019
* Update binary-deployment.md
* Add local deployment guide
* Add testing guide
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants