question

SingiReddySreejaCIS-4260 avatar image
0 Votes"
SingiReddySreejaCIS-4260 asked ·

How to get % CPU consumed by each user in a multi session VM without using powershell?

Using log analytics KQL query on Perf table we can get CPU utilization for machine level but unable to find user wise CPU utilization. Perf | where CounterName == '% Processor Time' and ObjectName == 'Process' Using the above query we can %CPU vs process and using VMProcess table we get process vs user data. As process to user is not a one-to-one mapping, I realized that this way we can't get % CPU used by each user. Please suggest a way.

azure-virtual-machines-monitoring
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Sumarigo-MSFT avatar image
0 Votes"
Sumarigo-MSFT answered ·

@SingiReddySreejaCIS-4260 Welcome to Microsoft Q&A, Thank you for posting your query!

Firstly, apologies for the delay in responding here and any inconvenience this issue may have caused.
There is no way to fetch the User details in perf hence it is not directly fetched exactly you will have to capture such information via powershell or cron job and paste it to a file then collect that log file via custom logs that's the only workaround, no direct method to achieve your requirement

If you wish and interested in this kind of feature, I would request you to post your feedback here. All the feedback you share in these forums will be monitored and reviewed by the Microsoft engineering teams responsible for building Azure: https://feedback.azure.com/forums/34192--general-feedback

Hope this helps!

Kindly let us know if the above helps or you need further assistance on this issue.

Please don’t forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.