Slack
DataLoris posts to Slack through an incoming webhook: a URL that lets an app post into one channel.
1. Create an incoming webhook in Slack
Section titled “1. Create an incoming webhook in Slack”- Go to api.slack.com/apps, click Create New App → From scratch, name it
DataLorisand pick your Slack workspace. - In the app settings, open Incoming Webhooks and switch Activate Incoming Webhooks on.
- Click Add New Webhook to Workspace, choose the channel that should receive alerts and click Allow.
- Copy the webhook URL. It looks like
https://hooks.slack.com/services/T000/B000/XXXX.
A webhook posts to one channel. To alert several Slack channels, create one webhook (and one DataLoris channel) per Slack channel.
2. Add the channel in DataLoris
Section titled “2. Add the channel in DataLoris”- Open Alert channels and click New channel.
- Choose Slack, give it a name such as
#data-alerts, and paste the URL into Webhook URL. Onlyhttps://hooks.slack.com/…URLs are accepted. - Click Send test. A test message should appear in Slack within seconds.
- Attach the channel to a suite: open the suite, Channels tab, Attach channels, pick a minimum severity and save.
Troubleshooting
Section titled “Troubleshooting”Open the channel in DataLoris and check its Delivery log.
| Status / error | Fix |
|---|---|
FAILED with invalid_token, no_service or 404 |
The webhook was revoked or the app removed. Create a new webhook and update the channel. |
FAILED with channel_is_archived |
The Slack channel was archived. Create a webhook for another channel. |
RETRYING |
Slack rate-limited or had an error. DataLoris retries for about 30 minutes. |
| No alert at all | Check that the channel is attached to the suite and that its minimum severity is not higher than the incident’s. |