Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure App Service Metrics - How to interpret Sum vs. Count related to requests?

Below is a screen shot of an Excel file downloaded from Azure showing metrics on the number of requests our web app is getting.

enter image description here

Notice the rows highlighted in yellow and orange. The 128, 177 and 138 represents the sum of requests. The 8, 9 and 9 represent the count of requests. I don't know who to interpret these numbers. Does the 128 mean that from 12:55 to 13:00 there were 128 requests? And then from 13:00 to 13:05 there were 177 requests? If so, what does the count values of 8, 9 and 9 represent?

like image 544
Randy Minder Avatar asked Dec 29 '17 19:12

Randy Minder


People also ask

What is handle count in Azure App?

Handle CountThe total number of handles currently open by the app process.

What is aggregation in Azure metrics?

Aggregation type – A type of statistic calculated from multiple metric values. Aggregate – The process of taking multiple input values and then using them to produce a single output value via the rules defined by the aggregation type. For example, taking an average of multiple values.

How can you reduce telemetry traffic while preserving a statistically correct analysis of the web app data?

Sampling is a feature in Azure Application Insights. It's the recommended way to reduce telemetry traffic, data costs, and storage costs, while preserving a statistically correct analysis of application data.


1 Answers

A metric is an aggregation over a time period. Each metric value includes total/minimum/maximum/average/count properties. In the above example, 177 means there were a total of 177 requests from 13:05 - 13:10. The count property indicates the number of samples in that time period. If this is the Requests metric, you will likely be more interested in the Total property.

For more details, please refer to the following:

https://docs.microsoft.com/en-us/rest/api/monitor/metrics/list#metric

https://docs.microsoft.com/en-us/azure/monitoring-and-diagnostics/monitoring-supported-metrics#microsoftwebsites-excluding-functions

like image 54
Andy Shen Avatar answered Sep 28 '22 10:09

Andy Shen