Session based VM Stats for any Particular VM | Nutanix Community
Skip to main content

We have a scenario where we want to show session based stats for any particular VM. Using below API we can get the CPU stats for the whole VM.

https://{{cluster_ip}}:{{port}}/PrismGateway/services/rest/v1/vms/{{uuid}}/stats?metrics=hypervisor_cpu_usage_ppm&intervalInSecs=60&startTimeInUsecs=1607965687547284&endTimeInUsecs=1607967487547284

Is there any way or any API that can can give stats bases on machine sessions?

What do you mean with machine sessions? 


By machine session, we mean that a VM can be accessed by multiple users at the same time. Therefore, we would want to see what are the VM stats for each user. For example, user A and user B are using a VM using their respective credentials. So, the VM currently has two unique sessions. We want to identify the stats for each session.


Got it. That is not in the product. You can use other tools for that. For example Citrix Director if using Citrix CVAD. 


Thank you for your reply. Can you please pinpoint me to any documentation that I can go through to help find a solution?


thankyou for your reply. Can you please pinpoint me to any documentation that I can go through to help find a solution

Not via Nutanix, you need third party tools for that.