Connect with Slack
To enable sending alert notifications to Slack, you need to create an app in your Slack workspace. The following steps guide you through the process:
-
Go to Slack apps page and click on Create New App button.


-
Click on Blank app option in the popup.

-
On the next screen, fill
CubeAPMfor App Name, select the desired Slack workspace, and then click on Continue button.
-
On the What it can do in Slack? screen, click on Add Bot Scopes button.

-
Search for and add the following scopes under Bot scopes:
channels:read
chat:write
chat:write.public
groups:read
users:readOnce all the scopes are added, click on Continue button.

-
On the What it can respond to in Slack? screen, nothing needs to be added. Click on Continue button.
-
On the Review your app screen, click on Create and Install button.

-
Now look for OAuth Tokens for Your Workspace section on the same page, and click on Install to Workspace button.

-
Click on Allow on the next screen.

-
Look for Bot User OAuth Token on the subsequent page. The token value starts with
xoxb. Copy this token value.
-
The above token can be provided to CubeAPM to enable sending alert notifications to Slack (set
alertmanager.oauth.slack.tokenproperty in/etc/cubeapm/config.properties, orconfigVars.alertmanager.oauth.slack.tokenin helm chart values file).
Update Note
If your CubeAPM Slack app was created before mentions were supported, it may not have the users:read scope. The Mention field in CubeAPM UI then shows the error Could not load Slack users: missing_scope. To fix this:
- Go to Slack apps page, open your CubeAPM app, and go to OAuth & Permissions.
- Under Bot Token Scopes, add the
users:readscope. - Click Reinstall to Workspace at the top of the page, and then click Allow.
The Bot User OAuth Token does not change on reinstall, so CubeAPM's configuration does not need to be updated. Refresh CubeAPM UI to load the users.