Docs
Live demo

Get alerts in Slack

Send failed applies, drift and sync alerts to Slack, and subscribe to Activity views.

On this page

Before you start: the admin role (or notification-edit permission), a Slack channel and its bot token.

Swipe the screenshot sideways to see all of it, or tap it to open it full size.

Create channel: the Slack destination and the events it receives. This screenshot comes from an earlier version of the design: the console has no choice of severity.
  1. Open Activity → Notifications (or Create → Create channel).
  2. Under Destination, enter Slack channel (#principal-alerts) and Slack bot token (Create a Slack app).
  3. Under Events, keep All events or pick events (Drift found, Apply failed, Sync failed or partially completed).
  4. Keep Enabled on under State and click Create channel.
  5. Click Send test (paper plane) and check Slack.
  6. Optional: filter Activity, click Subscribe, pick Needs attention or Every result and Slack channel (or Email to …), then click Subscribe.

Swipe the screenshot sideways to see all of it, or tap it to open it full size.

Subscribe to this view sends matching entries to Slack or email.

Failed message: open the channel, check Recent deliveries, fix the cause and click Resend.

Create a Slack app#

  1. Create an app at api.slack.com/apps (docs).
  2. Add bot scope chat:write, install to workspace and invite the bot to the channel.
  3. Paste Bot User OAuth Token (xoxb-…) into Slack bot token (tokens).

Through the API#

  1. Create: POST /notifications/channels (optional event_types, severity_filter, omit bot token to use the installation app):
    json
    {"channel":"slack","enabled":true,"config":{"channel":"#principal-alerts"}}
  2. Test: POST /notifications/channels/{id}/test.
  3. Deliveries: GET /notifications/channels/{id}/deliveries, resend POST /notifications/channels/{id}/deliveries/{delivery_id}/resend.
↑ ↓ to moveEnter to openEsc to close