Skip to main content

Connect with Slack for alerting

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:

  1. Go to Slack apps page and click on Create New App button.

    Create New App

    Create New App

  2. Click on From scratch option in the popup.

    From scratch

  3. On the next screen, fill CubeAPM for App Name, select the desired Slack workspace, and then click on Create App button.

    Select Workspace

  4. On the next page, click on Manage Distribution tab.

    Manage Distribution

  5. Look for Enable features and functionality section, and click on Bots button there.

    In Enable features and functionality, click on Bots

  6. On the next page, click on Review Scopes to Add button.

    Review Scopes to Add

  7. On the next page, look for Bot Token Scopes sub-section under the Scopes section, and then click on Add an OAuth Scope button.

    Add an OAuth Scope

  8. Add the following scopes:

    channels:read
    chat:write
    chat:write.public
    groups:read

    Added Scopes

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

    Install to MyWorkspace

  10. Click on Allow on the next screen.

    Click on Allow

  11. Look for Bot User OAuth Token on the subsequent page. The token value starts with xoxb. Copy this token value.

    Copy Bot User OAuth Token

  12. The above token can be provided to CubeAPM to enable sending alert notifications to Slack (set alertmanager.oauth.slack.token property in /etc/cubeapm/config.properties, or configVars.alertmanager.oauth.slack.token in helm chart values file).