Before, it was difficult to troubleshoot your application when you want to store it in Azure. But Microsoft is adding tools such as Application Insights that help you to get metrics of your ASP.net application for instance.
But here I would like to show you the potential of the new Azure App Service Support platform (still in preview).
This platform help you to monitor and get ad hoc metrics from your applications without any configurations!
You can also access to the Event Viewer of the App Service (previously WebApp) and this is really cool.
One simple URL to access to it:
You can then logging with your Azure Subscription Credentials.
You will see 3 menus: Observe, Analyze & Mitigate.
For the moment observe, show you only a basic chart of Avg requests and Avg Server Errors. I’m sure this will receive more chart in the future.
Analyze show you useful information about your App Service:
- Event Viewer
- FREB Logs
Getting some diagnostics:
Getting some specific metrics:
Displaying the Event Viewer:
For this section I will simply copy/paste descriptions from Microsoft. They are for me, very well explained.
So you can mitigate for:
- Max Requests: Consider a scenario where you have a need to recycle your application automatically after it has served X number of requests in Y amount of time. You know that it just doesn’t scale well after huge influx of requests in short amount of time. You want to detect this condition and recycle worker process automatically or log an event or Run a custom action.
- Status Code: Consider a scenario where you would like to get notified of a situation when your web Web App starts throwing specific HTTP status codes, sub-status code or win32 status codes. You can chose to recycle or simply log an event or Run a custom action.
- Slow Requests: Consider a scenario where the performance of your application starts degrading and several pages start taking longer time to render. You would like to detect this situation and recycle worker process automatically or log an event or Run a custom action.
- Memory Private Set: Consider a scenario where you have a need to recycle your application when your worker process hits specified memory limit (private bytes in Kb). You can chose to recycle or simply log an event or Run a custom action.