Configure diagnostics, monitoring and analytics Flashcards
Event Log
Event Log is particularly useful for capturing unhandled exceptions that may have escaped the application’s exception handling logic and surfaced to the web server. Only one XML file is created per website.
Web server
Web server logs Web server logs are textual files that create a text entry for each HTTP request to the website.
Detailed error message logs
These HTML files are generated by the web server and log the error messages for failed requests that result in an HTTP status code of 400 or higher. One error message is captured per HTML file.
Failed request tracing logs
In addition to the error message (captured by detailed error message logs), the stack trace that led to a failed HTTP request is captured in these XML documents that are presented with an XSL style sheet for in-browser consumption. One failed request trace is captured per XML file.
Application diagnostic logs
These text-based trace logs are created by web application code in a manner specific to the platform the application is built in
Site Control Manager (SCM)
1) Parallel website that is available with every deployed website, providing various management functions
2)
Retrieving diagnostic data using Windows PowerShell
1) cmdlets are installed and configured to connect to your subscription
2) Get-AzureWebsiteLog -Name contoso -Tail
Retrieving diagnostic data using the xplat-cli
azure site log download
enter just the name (not the full URL),
file named Diagnostic.zip
debugging website in azure
When you attach the debugger and pause at a breakpoint, you are stopping the deployed Azure website for all requests
Azure will treat your Websites worker process as having become unresponsive and try to restart it
Configuring endpoint monitoring
you leverage a service remote to your website, possibly in multiple regions around the world, to periodically ping your website to assess its health
Endpoint monitoring is available only to websites running in the Standard web hosting plan mode.
webjobs
1) run on demand, continuously, or on a predefined schedule with a recurrence
2) enabling you to perform background processing
WebJobs SDK binding attributes in C#
1) Blob trigger
2) IQueue trigger
Configure websites for scale and resilience
1) Configure auto-scale using built-in and custom schedules
2) Image Configure auto-scale by metric
3) Image Change the size of an instance
4) Image Configure Traffic Manager
Configuring auto-scale by metric
1) CPU Percentage
2) Image Memory Percentage
3) Image Disk Queue Length
4) Image Http Queue Length
5) Image Data In Amount of traffic ingress in kilobytes
6) Image Data Out Amount of traffic egress in kilobytes
Scope of Auto-Scale
Auto-scale affects the instance count of your web hosting plan and therefore affects all websites hosted within that plan. It does not apply directly to an individual website.