Is there a query that loganalytics uses Perf to query the process-specific CPU usage of VMs?

안 남기 181 Reputation points
2022-12-19T02:19:24.357+00:00

Is there a query that loganalytics uses Perf to query the process-specific CPU usage of VMs?

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

Accepted answer
  1. Alistair Ross 7,371 Reputation points Microsoft Employee
    2022-12-19T12:55:20.077+00:00

    Hi @안 남기

    Here is one example

    Perf  
    | where Computer == "DC00.na.contosohotels.com"  
    | where ObjectName == "Process"  
    | where CounterName == "% Processor Time"  
    | where InstanceName =~ "MsSenseS"  
    | make-series Average = avg(CounterValue) default = 0 on TimeGenerated from ago(1d) to now() step 15m by InstanceName  
    | render timechart   
    

    Here I am looking at the average processor time used by the process named "MsSenseS" across 15 minute intervals for the last 24 hours for the computer "DC00.na.contosohotels.com".

    272133-image.png

    I hope this helps provide you with the information you need. If it does, please make sure to mark the question as answered so it helps other people in future.

    Kind regards

    Alistair


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.