Forum Discussion
Deepwater_83
Jul 06, 2020Copper Contributor
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
Meir_Mendelovich
Microsoft
Jul 06, 2020Hi,
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: