CPU utilization query returning error

Vijay Patil 1 Reputation point
2021-09-13T19:43:09.073+00:00

131619-image.png

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,786 questions
{count} votes

1 answer

Sort by: Most helpful
  1. bharathn-msft 5,086 Reputation points Microsoft Employee
    2021-09-16T03:58:10.223+00:00

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

    @Vijay Patil 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.

    0 comments No comments