Collect performance data from Nutanix AHV

Performance data is a recurring topic on my blog. It is important to have data from multiple sources when doing performance analysis. Collecting the performance data from a Nutanix environment running AHV is a bit different compared to VMware ESX or Citrix XenServer. This blog post will cover how to collect the performance data from a Nutanix AHV hypervisor using PowerShell.

Collecting the data from Nutanix AHV

As mentioned in the introduction collecting performance data is a bit different on Nutanix AHV. Nutanix uses an API that allows you to collect the data from a cluster or specific node. Nutanix provides API reference documentation on the developer portal which shows all the available options.

Nutanix REST API Explorer

The goal of the script is to collect the performance data from a specific node and store the results in CSV file. The first step is to collect the node unique identifier, known as the uuid. This can be done using the /hosts API call which collects all the available nodes in the cluster. More information about can be found here:

As you may have noticed in the documentation it also provides the current stats from the node. It is possible to use this API call but it is recommended to use the specific stats call as this contains all the nodes including other information that is not required. The results will contain the uuid of the node but in the example below, it is also used to collect all available metrics for the next call. The final step is to collect all the metrics using the /hosts/uuid/stats call. More information about this call can be found here:

The following PowerShell script will collect all the available metrics from a specific node.

The script will report all available metrics with to a CSV format which looks like this.

Please note, the CPU Usage is not reported in a percentage and should be divided by 10000.


Performance data is one of the basics when doing performance research. Nutanix AHV is a bit different compared to other hypervisors like VMware ESX or Citrix XenServer. With the API the data can be collected and used in any format you prefer. In order to collect all the metrics from the stats call you have to specify the metrics that need to be collected.

I love the modern way of collecting the data using an API but the available metrics on the node is a bit disappointing. The basic crucial metrics are there, but comparing to VMware ESXtop it is basically nothing. During the creation of the script, I also noticed it can take some time when invoking the REST call. With the example interval, it is not a problem but it would when the interval is 5 seconds. Personally, I would love to see a similar tool as VMware ESXtop for Nutanix AHV that contains a ton of metrics just running on the node.

If you any questions or comments, please leave them below.


Photo by Johannes Groll on Unsplash