CPU Usage

Copper Contributor

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

 

1 Reply

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