Send alerts to Slack
Post Blecon Track alerts into a Slack channel so your team sees them where they already work, formatted and colour-coded by severity with a link straight back to the alert.
Prerequisites
- A Blecon Track workspace with at least one alert rule
- Permission to create an app in your Slack workspace. Some Slack workspaces require an admin to approve new apps; if so, ask a Slack admin to approve it or to create the webhook for you.
Step 1: Create a Slack incoming webhook
You do this in Slack, by creating an app in your own Slack workspace. The app is private: it is not published, not reviewed, and not visible to anyone outside your workspace. Because you name it, alerts arrive under your own name and icon.
- Go to api.slack.com/apps and choose Create New App, then From scratch.
- Name it whatever you want the alerts to appear as, and pick your Slack workspace.
- Open Incoming Webhooks and toggle the feature on.
- Click Add New Webhook to Workspace, select the channel where alerts should appear, and click Allow.
- Copy the webhook URL.
Step 2: Add the Slack channel in Blecon Track
- Go to Integrations and open the Event delivery tab.
- Click + Add Slack.
- Paste the webhook URL and give the channel a name. Name it after the Slack channel it posts to: Blecon Track cannot read that from the webhook, so the name is how you tell two of them apart.
- Save, then click Test to post a sample alert and confirm it arrives.
For security the URL is never shown again after you save it: anyone holding it can post to that Slack channel. If it is ever revoked, create a new webhook and edit the channel to use it.
Step 3: Attach the channel to alert rules
- Open the rule you want notifications for.
- Under Notifications, select your Slack channel.
- Save.
Result
When the rule triggers, a message appears in your Slack channel with the rule name, the asset involved, the rule type, and the time (shown in each reader's own timezone), colour-coded by severity, with a button back to the alert in Blecon Track. Acknowledging or resolving the alert posts a follow-up in the same channel.
Adding a second Slack channel
Each webhook URL posts to exactly one Slack channel, permanently. To alert a different Slack channel, repeat step 1 for that channel and add it as another Slack channel here. You can point different rules at different Slack channels.