To send alarms to a Slack channel, you need a webhook address from that channel. You create it once for each channel, then paste it into the alarm in Supervisor Pro.
Keep the webhook address secret. Anyone who has it can post to your channel.
Create the webhook in Slack
-
Go to api.slack.com/apps and select Create an App.
-
Choose From scratch. Name the app, for example "Supervisor Pro", select your workspace and select Create.
-
In the sidebar, open Incoming Webhooks. Turn on Activate Incoming Webhooks, then select Add New Webhook.
-
Pick the channel that should get the alarms and select Allow.
-
Back in the app settings, copy the address under Webhook URLs for Your Workspace. It starts with
https://hooks.slack.com/services/.
Add it to the alarm
-
In Supervisor Pro, open the alarm and select Add Slack.
-
Paste the address and give it a label, so you know which channel it is.
-
Select Send test.
A test message should show in the Slack channel within a few seconds.
Good to know
-
One webhook address is for one channel. Create a new one for each channel.
-
If the test message does not arrive, check that you pasted the whole address without spaces, and that the alarm is active.
-
To remove a webhook, delete the integration in Slack. The address stops working at once.