Skip to content

Slack Integration

Mogens Heller Grabe edited this page Mar 5, 2020 · 5 revisions

To start dispatching alerts to your Slack channels, you need to provide Fleet Manager with one or more webhooks on the form

https://hooks.slack.com/services/<????>/<????>/<?????????????>

which is what a webhook URL to post a message to a Slack channel looks like.

To be able to provide webhook URLs like that, you need to go through these steps:

  1. Create Slack app
  2. Enable webhooks
  3. Create webhook URL(s)

Let's walk through the steps 🙂

1. Create Slack app

Go here 👉 https://api.slack.com/apps?new_app=1 and create an app in the workspace you want to post messages to.

A good name for the app could be "Fleet Manager" 🙂

2. Enable webhooks

Go to the "Incoming Webhooks" item under "Features" and ensure the "Activate Incoming Webhooks" toggle is turned ON.

3. Create webhook

Click the "Add New Webhook To Workspace" button towards the bottom of the screen and then select which channel to target with Fleet Manager's alert messages:

When you've done that, you should get a webhook URL that looks somewhat like this:

Click the "Copy" button and paste the text into the appropriate text box in Fleet Manager:

and then click "Add Slack Integration".

Now this particular Slack integration will appear as a notification option when you create an alert.

Clone this wiki locally