-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Watcher: Add the ability to add Slack actions to Slack attachments #31032
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
Comments
Pinging @elastic/es-core-infra |
Is it possible that you are confusing two actions here from the slack API? The one using the callback id (as mentioned here) is a different feature, than using an attachment action, which should be supported. However this one does not need the |
That is correct that an action is different than the attachment which is currently supported in Watcher. This page has the documentation on creating Slack actions which allow for interactive messages and includes documentation on the required |
thanks for that link, didnt spot it. Indeed this is currently not supported. |
Three months later spotted the same issue, see this thread. It is still present in 6.3.2 and 6.4.0 releases. |
@spinscale @hub-cap Any word on whether or not this will be supported in a future release? |
Really sucks this isnt supported. Slack has new docs and it seems that _watcher is operating on the old docs plus it has limited functionality For example something like this will not work despite the fact that the slack api supports this
|
+1 here. Adding buttons works when simulating the watch and I can successfully save it, but then I can never edit it again due to the parsing exception |
+1 need this.. footers too. |
+1 for every properties that Slack provide on attachements
|
same I need this :| |
This feature request really needs more attention - Slack alerts have limited use in a noisy production environment without the ability to at least ack the Watch from the alert itself; this is something that has prevented us from fully embracing Watcher as an alerting tool. On the flip side it would open up lots of cool functionality that I think would encourage people to get creative with Watches. It's probably worth mentioning that Elastic have updated their roadmap with regard to alerting as detailed in this blog post from September 2019, and I understand a lot of work is being done on that at the moment. However as mentioned in that post:
So unless someone from Elastic can correct me, it seems we will still be relying on how Watcher exposes the Slack API for some time to come. This issue is getting old now, and the solution mentioned by @spinscale in #34546 (under 'Stop strict parsing of JSON structures sent to 3rd parties') seems to me like a good idea for the time being? |
+1 |
+1 |
+1 |
It does not appear that the Watcher Slack action supports adding Slack Actions. It would be very helpful to have the ability to add actions such as buttons for alert acknowledgement. I'm currently able to do this outside of Elasticsearch with a POST containing the following body:
I added the below to my watch configuration in an attempt to get the same functionality out of Watcher:
But the error I get is
Watcher: [parse_exception] could not parse message attachment field. unexpected field [callback_id]
which makes me assume that the Slack action in Watcher does not support adding actions to attachments.Elasticsearch version: 6.2.4
The text was updated successfully, but these errors were encountered: