CPU utilization query returning error

mevijaypatil 1 Reputation point


Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,070 questions
{count} votes

1 answer

Sort by: Most helpful
  1. bharathn-msft 4,976 Reputation points Microsoft Employee

    <<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.

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


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

    0 comments No comments