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

send alert to multiple slack channels with 'modern' (not legacy) webhooks #20

Open
hagaram opened this issue Jan 9, 2023 · 1 comment

Comments

@hagaram
Copy link

hagaram commented Jan 9, 2023

Hi,
at the moment, there is a possibility to override slack channel via label/annotation in your application.

Only legacy slack webhooks are capable of posting to multiple channels with one webhook URL via channel parameter.

Slack apps and "modern" incoming webhooks have specific URL mapped to specific channel, so there is no way to override them.

Would it be difficult to add some kind of option or better word would be mapping, where it would be possible to map annotation (or slack channel)
alert-slack-channel: "your-slack-channel-name" to specific webhook URL in the config?

something like:

WebhookURLMapping:
  default: https://hooks.foo.bar/xxxxxxx
  my_second_channel: https://hooks.foo.bar/yyyyyyyy

I understand, that at the moment I can use legacy webhooks, but they will stop working eventually.

@bygui86
Copy link

bygui86 commented Apr 4, 2023

@hagaram meanwhile I suggest you to have a look at Botkube.
It offers maybe too much features for your use case, but you can fine tune a lot and offers a good level of flexibility.
If I'm not wrong, we are using it with "modern" slack webhooks with a single URL but sending messages to multiple channels.
Hope that was helpful.

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

No branches or pull requests

2 participants