VMware Cloud Community
herge12
Contributor
Contributor

How to fetch performance statistics NOT stored in the VirtualCenter database

I'm trying to use VMware Perl SDK to fetch the real-time value of the deviceLatency counter. This counter is available only as a real-time counter, and its value is not stored in the VC database.

I tried tweaking the viperformance.pl script, and did not succeed. The VMware SDK documentation states that "normally, QueryPerf will return performance statistics

stored in the VirtualCenter database". I can get QueryPerf to retrieve real-time value for historical counters, but not for counters available only as real-time.

ESX version is ESX3.5i. Does anybody have a code example of how to do it ?

0 Kudos
2 Replies
lamw
Community Manager
Community Manager

Take a look at this vSphere SDK for perl script:

It was written against ESX(i) 4.0, have not tested it for VI 3.5, so you would need to test but it should work.

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

Twitter: @lamw

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Community

If you find this information useful, please award points for "correct" or "helpful".

0 Kudos
cchesley
Enthusiast
Enthusiast

What are you trying to measure with device latency? is device latency the same as disk latency?

Chris

http://www.vkernel.com
0 Kudos