Forum Discussion

Deepwater_83's avatar
Deepwater_83
Copper Contributor
Jul 06, 2020

CPU Usage

Need some help creating a query to pull the CPU usage by a minute of a particular computer.

Any help in this regard will be appreciated.

 

Thanks in advance

 

  • Hi,

    Here is a query that shows highest average CPU minutes for computer "foo":

     

    Perf
    | where TimeGenerated > ago(1d)
    | where CounterName == "% Processor Time" and InstanceName == "_Total"
    | where Computer == "foo"
    | summarize avg(CounterValue) by bin(TimeGenerated,1m)
    | top 10 by avg_CounterValue

     

    Azure Monitor Logs query example have several examples that also shows CPU data:

     

    Deepwater_83 

Resources