robusta-dev/robusta

Slack mentions enricher

otherguy opened this issue · 7 comments

All our workloads, pods, deployments, HPAs, etc. are tagged with labels for a) which team owns them and b) with who to notify when something is wrong with them. The details of the latter are not important since we control the label. It can be whatever works best, for example a comma separated string of Slack IDs.

For our Slack sink, I would love it if Robusta could @-mention the people that should be notified about issues with the deployment or pod.

For example if there is an on_pod_oom_killed event, Robusta could enrich the slack message with a @username in Slack.

It would be great if this also supported @-mentioning Slack user groups, which I suspect may need explicit support if such a feature were to be based on Slack IDs

Hi @jmalloc , @otherguy

We're considering implementing it using slack user/groups instead of names.
So, in order to mention a slack user or group, you'll need to provide their ids (you can get it from your Slack workspace)
Mentions works with ids, and to get id by name, our Slack api key need additional permissions, and we're trying to avoid that.

Will that be an acceptable solution?

@arikalon1 sounds good to me :) I mentioned IDs in the original request because I figured you would want to avoid adding additional permissions!

Closing as the feature is released!

@pavangudiwada awesome, thanks! Is there documentation for it?

Super cool, thank you so much @pavangudiwada and @arikalon1!