vmware / govmomi

Go library for the VMware vSphere API
Apache License 2.0
2.31k stars 912 forks source link

govnomi : add vSAN high resolution Stats Support ( New Metrics / Query Specs to VSAN as of esxi 8u1 ) #3621

Open Muy69 opened 2 days ago

Muy69 commented 2 days ago

Update so that high resolution stats can be pulled.

New Query Specs would be :

'hr-cluster-domclient', 'hr-cluster-domcompmgr', 'hr-host-domclient', 'hr-host-domcompmgr', 'hr-vsan-vnic-net', 'hr-vsan-host-net', 'hr-vsan-pnic-net', 'hr-rdt-net', 'hr-vsan-tcpip-stats', 'hr-vsan-esa-disk-layer', 'hr-vsan-esa-disk-scsifw', 'hr-vsan-esa-dom-scheduler', 'hr-cache-disk', 'hr-capacity-disk', 'hr-disk-group', 'hr-zdom-io', 'hr-zdom-vtx'

If the Metrics are avaible , other Application as Telegraf will benefit and extract such Metrics . With such support those High Resolution Stats Metrics can be used to get 30sec Polling Intervals to the VSAN ESA Layers, same as you will see currently only in the "Real Time" UI in vSphere

Currently the VSAN Option provides only 300sec ( 5Minutes) Polling interval which is inadequate for a Storage Device of such magnitude like VSAN ESA as all the Spike will not be traceble.

On the Explore 2024 we have asked the ARIA Team why such Polling intervall for VSAN ESA ( 30sec) are not avaible and they gave the info that the Telegarf Tool is not able to provide such Metrics to ARIA currently , only the default Polling Intervall of 300sec.

I linked the current VSAN Module under the VSPHERE Module of Telegraf to show that the High Resolution stats are missing.

https://github.com/influxdata/telegraf/blob/master/plugins/inputs/vsphere/vsan.go

github-actions[bot] commented 2 days ago

Howdy 🖐   Muy69 ! Thank you for your interest in this project. We value your feedback and will respond soon.

If you want to contribute to this project, please make yourself familiar with the CONTRIBUTION guidelines.