title | redirect_from | |
---|---|---|
Set up Slack |
|
If you want to have your dashboard subscriptions or alerts sent to Slack channels (or people on Slack), an admin must first integrate your Metabase with Slack.
For Metabase to post to your Slack channels, you’ll need to create a Slack App and make it available to Metabase.
From any Metabase page, go to Admin settings > Settings > Notification channels > Slack.
Click on Open Slack Apps. Metabase will open a new browser tab and send you over to the Slack website to create the Slack app.
On the Slack website, click Create an App.
Select the workspace you want to create your app.
When you click on Open Slack App, Metabase will pass along the app manifest, which Slack will use to set up your app.
You may get a warning that says:
This app is created from a 3rd party manifest Always verify URLs and permissions below.
This warning is expected (Metabase is the third party here). You can click on Configure to see the app manifest Metabase sent along in the URL. Here is the manifest in YAML format:
_metadata:
major_version: 1
minor_version: 1
display_information:
name: Metabase
description: Bringing the power of Metabase to your Slack #channels!
background_color: "#509EE3"
features:
bot_user:
display_name: Metabase
oauth_config:
scopes:
bot:
- users:read
- channels:read
- channels:join
- files:write
- chat:write
- chat:write.customize
- chat:write.public
- groups:read
The manifest just take cares of some settings for your app and helps speed things along.
Click the Next button. Then hit Create to set up your Slack app.
On the Slack site for your newly created app, in the Settings > Basic Information tab, under Install your app, click on Install to workspace. On the next screen, click Allow to give Metabase access to your Slack workspace.
On the Slack site page for your Slack app, on the left in the Features section, click on OAuth and Permissions in the Slack Apps sidebar and then copy the Bot User OAuth Token. Return to the Slack settings page in your Metabase and paste this token in the Metabase field with the same name.
In Metabase, click on the Save changes button and that’s it! Metabase will automatically run a quick test to check that the API token is working properly. If something goes wrong, it'll give you an error message.
In order to send subscriptions and alerts to private Slack channels, you must first add the Metabase app to the private channel.
In Slack, go to the private channel and mention the Metabase app. For example, if you called your Slack app "Metabase", you'd just type @Metabase
. Slack will ask you if you want to invite your app to your channel, which you should.
It can take a little time for metabase to see all the channels the app has been invited to. New channels may not appear in listings for up to 10 minutes after inviting the app to the channel.
In order for metabase to see private channels, the app must have the groups:read
oauth scope. Although this scope should be granted when setting up the app through metabase, older installations might not have this scope.
If you think this might be the case visit the app settings in slack:
groups:read
scope.Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )