Slack setup for Elementary CLI
Elementary Slack integration includes sending Slack alerts on failures in dbt tests and models, and the option to distribute the data observability report as a message attachment.
Token vs Webhook
There are two integration options: Token or Webhook. Both methods let you receive alerts from Elementary, but there are several features that are only supported in one of the two. Below is features support comparison table, to help you select the integration method.
If possible, Token is the preferred way. It allows more flexibility and supports more features than Webhook.
Slack integration | Elementary alerts | Elementary report | Multiple channels | Slack workflows |
---|---|---|---|---|
Token | ✅ | ✅ | ✅ | ❌ |
Webhook | ✅ | ❌ | ❌ | ✅ |
Slack integration setup
First create a Slack app:
Create a Slack App
Create a Slack App
1. Create a Slack app
Go to the Slack page to create apps and create a new app (from scratch). Call it "Elementary" and connect it to the workspace of your choice.
2. Optional - Slack app display
To change the display of the Elementary slack app, scroll down on the Slack app basic information page to the 'Display Information' section:
Here is the Elementary icon for your use (click to download):

Based on the method you selected, create a token or webhook:
Create Slack Token
Create Slack Token
1. Create a Slack token
Go to the "OAauth & Permissions" page for your newly-created app, and add the following scopes under "Bot Token Scopes":
channels:join
- Join public channels in a workspacechannels:read
- View basic information about public channels in a workspacechat:write
- Send messages as <app>files:write
- Upload, edit, and delete files as <app>users:read
- View people in a workspaceusers:read.email
- View email addresses of people in a workspacegroups:read
- View basic information about private channels that your slack app has been added to
2. Install app at your Workspace
At the "OAuth & Permissions" page, press on "Install to Workspace" in order to generate Slack token:
Create Slack Webhook
Create Slack Webhook
Create a webhook
Go to the 'Incoming Webhooks' page for your newly-created app and toggle 'Activate Incoming Webhooks' to turn it on. Then click on 'Add New Webhook to Workspace':
Select the channel that the notifications will be posted to:
Lastly, pass the token / webhook to the CLI as a param or in the config.yml
file:
Slack config as CLI params
Slack config as CLI params
Slack config as in config.yml
Slack config as in config.yml
Slack Workflows
If you use Slack Workflows, add the following configuration to your config.yml
under the slack tag:
This flag workflows: true
changes the format in which edr sends Slack alerts to the key-value pairs format supported by Slack Workflows.
The alert keys can be used to build a Slack workflow.
The alert format is: