Introduction to Statistics Fetch
The fetch-statistics facility returns semi-structured data in a variety of formats for use within a the guest OS. Four encodings are supported:
1
2
3
4
Statistics are accurate within the current session only. A session represents a powered-on virtual machine running on a single ESXi host. Sessions may be discontinuous across session changes, so monotonically increasing metrics can suddenly decrease. New sessions result from suspending a virtual machine, reverting to a snapshot, vMotion, or certain types of hot-plug operations. It is up to the consumer of statistics to notice that the session has changed and deal with numerical discontinuities.
Guest OS statistics are supported for troubleshooting and support only. Specifically:
Metrics might be added, removed, or modified to have a different meaning. For example: co-stop time changed meaning between ESXi 4.1 and ESXi 5.0.
This support declaration is similar to the compatibility guarantee for the esxtop command, whose statistics the Guest SDK reflects. See https://communities.vmware.com/docs/DOC-9279 for details about esxtop.
Prerequisites
Before you start, install the latest version of VMware Tools in all relevant virtual machines.
For extended guest statistics, you must have VMware Tools version 9.10 or later installed in a virtual machine running on an ESXi 6.0 or later host. There is no minimum virtual hardware version. Version 9.10 was released with vSphere 6.0. Earlier ESXi hosts return no data for extended statistics requests, and earlier VMware Tools lack extended statistics. If statistics are unavailable, a code indicates that the requested item is unsupported.