Azure Metrics and Azure Logs not same values

Hermann Magliacane 11 Reputation points
2025-01-13T16:07:35.7+00:00

Hi,

I'm not understanding why if I use "Azure Metrics" -> add metric -> filter from 01st Jan 2025 to 13th Jan 2025 I see 174M of requests

and if I use "Azure Logs" quering AppRequests via KQL I just retrive 21M of request.

Any Suggest?

What's wrong?

User's image

User's image

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,410 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Stanislav Zhelyazkov 25,406 Reputation points MVP
    2025-01-14T07:45:55.5333333+00:00

    Hi,

    I think the issue comes with something called Sampling in Application Insights. The correct way to count the number of requests in AppRequests table is:

    AppRequests
    | summarize totalCount=sum(ItemCount) 
    

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.