vSphere
Performance
VMware vSphere servers use performance
counters to track resource use. At runtime, vSphere components generate
performance data which the vSphere servers store in performance counters. You
can use the
PerformanceManager interface to
retrieve the data.
vSphere Performance Data Collection In a vSphere environment, virtual and physical components generate performance data. To track the use of resources, ESXi Servers perform real-time data collection and vCenter Servers store the data in the vCenter database. vCenter Servers also store a historical rollup of the data according to defined performance intervals. PerformanceManager Objects and Methods PerformanceManager provides methods for obtaining statistical data about various aspects of system performance, as generated and maintained by the performance providers. It also defines historical performance intervals and it identifies the set of performance counters that you can use to obtain performance data. The following table shows the PerformanceManager properties. Retrieving vSphere Performance Data To retrieve collected data, your client application creates a query specification and passes the specification to a performance query method. The query specification is composed of one or more PerfQuerySpec objects. Each object identifies the following: Performance Counter Metadata Performance counters are organized by groups of system resources. Examples of performance counter groups are memory, CPU, and disk. The counter groups and specific counters used on any vSphere server depend on the server configuration. The vSphere API Reference contains a table for each counter group. The table includes the counter name, type of statistics being collected, unit of measurement, level, and so on. The vSphere API Reference page for the PerformanceManager managed object contains links to the tables. Performance Intervals The PerformanceManager defines performance intervals which specify the period of time between collection events, how much data will be collected, and how long the collected data will be saved. vSphere Performance and Data Storage The following sections provide information about modifying the operation of the PerformanceManager and vSphere Server performance data collection and storage. Sample Code Reference The following table lists the sample applications included with the vSphere Web Services SDK that demonstrate some of the topics discussed in this chapter.