How to find High CPU Processes with Azure Monitor?

Nathanael Santschi 126 Reputation points
2022-10-04T08:03:07.673+00:00

How can I find information to processes which are using most CPU?
I found some blogs using the legacy Log Analytics Agent and Performance Counters: https://www.cloudsma.com/2018/07/cpu-processes-azure-log-analytics/
But I don't find any information to that in the VM Insights Table from Azure Monitor for VMs.

My use case: I have a burstable VM which suddenly needs a lot more CPU and I want to track down which processes are using more CPU. For sure I can do that directly in the Guest OS but I'm wondering if there are any other options with Azure Monitor?

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,804 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,127 questions
0 comments No comments
{count} votes

Accepted answer
  1. George Moise 2,346 Reputation points Microsoft Employee
    2022-10-04T09:39:31.813+00:00

    Hello,

    Azure Monitor - VM Insights, will not collect data about the CPU usage of each process on the monitored VMs.

    To achieve this, I would recommend you to:

    • Create a new Data Collection Rule in Azure Monitor and configure it to collect (from your important VMs) the Process - %Processor Time performance counter for All Instances, then configure this Data Collection Rule to send the collected data to your Log Analytics Worksapce.

    The above Data Collection Rule will work by pushing the Azure Monitor Agent (new agent) to all the targeted VMs (automatically).

    After this, you should get records about how much Processor time each process from the targeted machines is consuming, and this data will be presented in the Perf table in your log analytics workspace, from where you can make use of the article you shared initially.

    I hope it helps!
    BR,
    George

    2 people found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. JimmySalian-2011 41,916 Reputation points
    2022-10-04T08:27:22.477+00:00

    Hi,

    You can use VM Insights and Workbooks to configure the performance insights and alerts based on the health of the VM, VM insghts with Workbooks will provide detailed info on the performance matrix for that VM.

    Check out in details over here
    vminsights-performance
    vminsights-workbooks

    Also VM insights Gues preview is there so explore this - vminsights-health-overview

    Hope this helps.

    ==
    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    1 person found this answer helpful.
    0 comments No comments