Whey
Whey

Reputation: 33

Unable to reproduce data from Azure Metrics Chart using Logs

I am trying to create dashboard of my services in Azure. I added Azure Metrics Chart of each service and later wanted to add under it specific details to operations included in service.

enter image description here

But when I try to get it from logs, I get much higher number of requests made. KQL:

requests
| where cloud_RoleName startswith "notificationengine"
| summarize Count = count() by operation_Name
| order by Count

And result:

enter image description here

Problem is with some metrics chart I get values with minimal difference or exactly same while with some like one I shown I get completely different values. I tried to modify KQL or search what might be wrong but never got anywhere.

My guess is that those are 2 different values but in that case why both are labeled as "requests" and if so what are actual differences?

Upvotes: 0

Views: 133

Answers (1)

Pravallika KV
Pravallika KV

Reputation: 8410

I have taken an Azure Function App with 2 Http Trigger Functions with identical names starts with “HttpTrigger” and run both the functions for couple of times.

Test Case 1:

In the Logs Workspace, Requests count got for the two functions that starts with the word “HttpTrigger”:

enter image description here

But I have pinned the chart of only 1 Function Requests Count to the Azure Dashboard:

enter image description here

Probably, I believe you have written the query of requests of all the services/applications that starts with “notificationengine” but pinned only some apps/services logs-chart to the dashboard.

Test Case 2:

enter image description here

enter image description here

Upvotes: 0

Related Questions