I heard about the demo at VMworld where IBM showed power utilization in the vCenter console and this made me wonder - is it possible to create custom performance counters so they become available for reporting in the same way that other counters are?
An example would be to have a chart that shows CPU temp along with CPU utilization. The CPU temp is already read via IPMI, but doesn't appear to be stored anywhere.
I looked through the SDK documentation and couldn't find anything specific - I assume that a new PerfomanceProvider would be required, but I didn't see anything that let you create your own providers.
thoughts?
thanks!!
Take a look at the following documents:
There are also additional webinars on performance counters/monitoring here: http://communities.vmware.com/community/developer/learn/webinars
=========================================================================
William Lam
VMware vExpert 2009
VMware ESX/ESXi scripts and resources at:
VMware Code Central - Scripts/Sample code for Developers and Administrators
If you find this information useful, please award points for "correct" or "helpful".
Thanks for the reply.
I'm not looking to retrieve existing counters - I'm looking to create a new counter that I would populate with my own data.
Is this possible?
thanks
If you're looking to add any 'custom' data, take a look at using the customField for either a host or virtual machine.
Here is a script that can help:
=========================================================================
William Lam
VMware vExpert 2009
VMware ESX/ESXi scripts and resources at:
VMware Code Central - Scripts/Sample code for Developers and Administrators
If you find this information useful, please award points for "correct" or "helpful".
Thanks for the reply -
I'm not sure I'm getting my point across - I'm looking to create custom performance counters, not just custom fields. Is that possible?
thanks
no
=========================================================================
William Lam
VMware vExpert 2009
VMware ESX/ESXi scripts and resources at:
VMware Code Central - Scripts/Sample code for Developers and Administrators
If you find this information useful, please award points for "correct" or "helpful".