Configure performance monitoring in Microsoft Azure Cloud Services
Application Insights is in preview.
Application Insights for Visual Studio Online can monitor your live web application’s performance and help you diagnose any performance issues or exceptions that occur. If there are any issues such as slow responses or uncaught exceptions, you can be notified by email. You’ll be able to open the stack trace in Visual Studio to pinpoint the problem in the code.
If your web service runs as a web role in Microsoft Azure Cloud Services, you add some scripts to your application solution in Visual Studio, and then redeploy your solution. You can monitor any web service, whether it’s an ordinary website or, for example, the server component of a phone app. The monitor collects data with very little overhead.
Download and install the Application Insights tools
Install the Microsoft Azure tools in your application development project.
If you haven’t signed up to Visual Studio Online, do that now.
Open Application Insights.
The next step depends on what you already have set up.
If you already set up usage monitoring for your app, go to PERFORMANCE and select your application name. Because you haven’t set up performance monitoring yet, you’ll see setup instructions. Click the link for other options in step 1.
If this is the first time you have used this Application Insights account, choose the link for other options.
If you want these performance metrics to appear under a different application name, choose Add Application.
Select these options to get to the setup page for a Microsoft Azure project.
Follow the instructions to set up your project for performance monitoring.
Rebuild and deploy your application.
Do not select Enable Intellitrace or Enable profiling in the Publish wizard. Application Insights is incompatible with these settings.
View the performance results
After 20-30 minutes, look for the performance counters and metrics that will show up in the Server Performance and Diagnostics pages.
Select the name of your application to see the results.
The setup failed
- In your ServiceConfiguration.csdef file, make sure you don’t use osFamily="1" in <ServiceConfiguration>. You must use 2 or greater.
I don’t see any data
- Make sure you didn’t check Enable IntelliTrace or Enable profiling in Microsoft Azure publish settings. These options appear in the Advanced Options tab in the Publish wizard. Application Insights is incompatible with these options.