Connecting Visual Studio Application Insights to Slack
Update 2017-04-10: Since I initially wrote this blogpost a company has created a real integration with Application Insights and Slack, not just the email one I mention below. Check it out at https://www.getcloudbot.com/
In projects I’m involved in we are big fans of both Visual Studio Application Insights (in Azure) and Slack. As of today there is no specific app to post from Application Insights into a Slack channel, but in case you are using the paid version of Slack you can still get the same result using the email app. Here is a quick “how-to-guide” of how we are using it with Proactive detection.
Btw, Proactive detection in Application insights is a really cool feature that was released quite recently. It’s basically some really smart big data deep dive into your logs to find out abnormal patterns in your application. It helps you find issues you did not know exists and hopefully you can find and fix them before your users gets angry :)
Posting insights and alerts from Azure to Slack enables discussions and communication in a much better around the incidents than if it would have been done in an email conversation.
1. Go to the email app in the Slack app directory
2. Scroll down and install that app for your team
3. Once it’s installed, choose to add a new configuration
4. Choose the channel to post your insights to. We have created a special channel for application insights so that it’s up to each team member to choose whether or he/she would like to subscribe.
5. Here comes the important part. Slack will generate a unique email address for your team. Make a copy of this one and don’t share it publicly. In the example below it’s “email@example.com”.
6. Give the email some nice label, name and icon to make it recognizable once the entries starts to appear in your channel.
7. Last but not least, go to the settings blade for Proactive detection and add your secret email address as one of the recipients.
8. Now you are done and the insights will start to show up.
Remember that you can do the same for alerts.
Happy slacking :=)