Closed itsderek23 closed 5 years ago
Any update on this one please? Slack integration would be really useful.
This would be very helpful! In the meantime, you can use https://get.slack.help/hc/en-us/articles/206819278-Send-emails-to-Slack to send email notifications to a Slack channel.
It would definitely be great to have this.
That would be great! I receive alerts on my e-mail, but I try to see my e-mails a few times a day. Slack is syncronous and my colleagues and I can discuss the alert.
We have released Webhook notification channels. These can be combined with Zapier (free to use) in order to receive APM alerts in Slack.
To integrate Slack with Scout's Alert Notification system, you can utilize the Webhook feature on the Application > Notification Channels page.
In order for Scout and Slack to be able to work together, you need to use a third-party service called Zapier.
Zapier is a service which allows you to connect different web services together to make custom work-flows.
First of all you will need to create an account with Zapier, and once you have done this, you can go ahead and create a Zap, by clicking on the Make a Zap! button on the top right-hand side of the screen, as shown in the image below.
You need to create a Trigger (for Scout) and an Action (for Slack) in order to make the two systems able to communicate. First of all, create the trigger by selecting Webhooks by Zapier as the App you want to work with.
Next you will need to select the type of trigger that you want, select Catch Hook. Next you will be given a URL, which is the Webhook that we will use to link to in Scout. Copy this URL and then open up Scout.
In Scout, navigate to Application > Notification Channels and create a new Webhook, like the picture below, copying in the Zapier URL.
Next you will need to add or edit a Notification Group to include this new channel.
At this point if you try to carry on creating the Zap in Zapier, it will try to pull a sample Alert from Scout using the Webhook that we set up. The reason it does this is that it requires sample data from Scout in order to understand the format of the trigger, and what fields are available from the Scout. However, at this point there are not going to be any Alerts it can use because this Webhook has only just been set up. So here you have two options:
We strongly recommend the first option, because later on when you are specifying the message that you are going to send to Slack, if you do not have sample data, you will not be able to use data that came from Scout.
To create a quick Alert, open up Scout, go to Alert > Alert Conditions and create a simple condition that will alert, and choose the Slack Notification Group we set up earlier.
After the Alert has occurred in Scout, go back to Zapier and click the Ok, I did this button and it will connect with Scout and look for an Alert with this matching Webhook. Choose this as the sample you want to use and click Continue.
Next you need to add an Action step to the work-flow, this is the part were we integrate Slack. Click Add a Step on the left-hand side of the page.
Next click the Action/Search option, and you will be given the option to choose an app to connect.
Choose Slack, and then a new Action will be created on the left-hand side of the screen.
There are many different types of Slack Action that you can choose to perform, but let's choose Send Channel Message.
Next you can configure many aspects of the message that will be sent, such as which channel to send the message to and what particular data comes from the Scout Alert (shown in green). It is only possible to pull this data from Scout here if you created an Alert earlier like we advised.
Then you can send a test message to Slack to preview how it will look.
Then all that's left to do is to give your Zap a descriptive name and enable it.
Now everything is set up so that whenever an Alert occurs in Scout which is linked to this Notification Channel, you will see a message in Slack.
Add a Slack notification channel for alerts.