How to configure routings
Learn how to configure Slack routings
Last updated
Learn how to configure Slack routings
Last updated
Routings for Slack notifications enable sending alerts to different Slack channels for various workloads within a cluster based on labels.
To maximize your effectiveness, Slack routing is available not on the workload level only, but also on the namespace level. This means you can configure routing for specific workloads as well as for the entire namespace.
There are two options on how to configure Slack routing:
By specifying the Slack channel IDs where you want to receive Slack Alerts.
By specifying the Slack channel names where you want to receive Slack Alerts.
To configure routings with the channel ID, define the labels matching the Slack channel ID you want to receive Slack Alerts.
Example of a label:
label_some_key : label_some_value
, where label_some_value
= Slack channel ID
To configure routings with the channel name, define the labels matching the Slack channel names you want to receive Slack Alerts.
label_some_key : label_some_value
, where label_some_value
= Slack channel name
Name the profile.
Ensure to configure slack_token
and include the relevant data in the slack_token
field. This field is mandatory.
Indicate the channel_id
. This field is mandatory, and the indicated channel will be the default channel if Advanced Alert Routing fails.
List label_key
(s) under routings_by_id
(to configure routing by channel_id) or routings
(to configure routing by channel_name).
Verify if your Slack is configured properly with the Test Integration
button.
Click Save
button.
Example of a label: