vSphere DataStore Exporter For Prometheus
You need to add three environment variables: VC_IP, VC_USERNAME, VC_PASSWORD, so that the exporter can login vcenter successfully~
example data: curl http://127.0.0.1:5000/metrics/, You'll see the data format like this:
# HELP vsphere_datastore_capacity datastore capacity
# TYPE vsphere_datastore_capacity gauge
vsphere_datastore_capacity_bytes{name="NYFCLOUD-TYPE03-VOL"} 1145414090752
vsphere_datastore_freespace_bytes{name="NYFCLOUD-TYPE03-VOL"} 150457024512
vsphere_datastore_uncommitted_bytes{name="NYFCLOUD-TYPE03-VOL"} 5498350192533
MIT License. See the LICENSE file for details.