question

mevijaypatil avatar image
0 Votes"
mevijaypatil asked bharathn-msft answered

CPU utilization query returning error

131619-image.png


azure-monitor
image.png (37.0 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@mevijaypatil Welcome to Microsoft Q&A and thank you for your query.

If I run the same query in one of our demo Log Analytics workspace , was able get the output.
131649-image.png

Can you please further expand on from where exactly you are running this query and do you data being sent to the Log Management --> Perf table ? so that we can help you to troubleshoot the issue further. Thanks

0 Votes 0 ·
image.png (436.7 KiB)

@mevijaypatil Checking in to see if you had a chance to review the above comments and have any further queries. Thank you

0 Votes 0 ·

1 Answer

bharathn-msft avatar image
0 Votes"
bharathn-msft answered

<<Sharing the information here for broader community usage>>

@mevijaypatil Welcome to Microsoft Q&A and thank you for your query. Please make sure to enable the perf collection first , follow through this documentation.

Provided the information is being sent to LogAnalytics workspace and the respective Perf table, we should be able to run the below query. Ran it on one of our demo workspace, which gave the below output.

 Perf
 | where CounterName == "% Processor Time"
 | where ObjectName == "Processor"
 | summarize avg(CounterValue) by bin(TimeGenerated, 15min), Computer, _ResourceId
 | render timechart 

132567-image.png

Please let us know if you have any further queries, thank you.


image.png (513.8 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.