Oxalide / vsphere-influxdb-go

Collect VMware vSphere, vCenter and ESXi performance metrics and send them to InfluxDB
GNU General Public License v3.0
215 stars 62 forks source link

ESXi 6.5 - What is possible? #103

Open exetico opened 4 years ago

exetico commented 4 years ago

Hi,

There's plenty of issues related to support for ESXi (#58, #52 and more), but - what kind of things will be possible to see, if i'm trying to do it with my ESXi setup?

I would really like a few details, if possible - however, if there just a few metrics, i would like to know, what i can see :-)

I'm sorry for bringing this up agian, but i just thought it could be nice to know. Maybe even at it in the README, so people are aware of it.

Appelg commented 4 years ago

I'm confused about this too. I run against a single ESXI 6.7 host, this is my output:

2020/05/03 16:25:48 Successfully connected to Influx
2020/05/03 16:25:48 Worker 3 received vcenter esxi.lan
2020/05/03 16:25:48 Connecting to vcenter: esxi.lan
2020/05/03 16:25:48 Version: VMware ESXi 6.7.0 build-15160138
2020/05/03 16:25:48 PerformanceManager interval collection level
([]types.PerfInterval) <nil>
2020/05/03 16:25:48 Setting up query inventory of vcenter: esxi.lan
([]types.ManagedObjectReference) (len=9 cap=9) {
 (types.ManagedObjectReference) Datastore:5d98bccb-,
 (types.ManagedObjectReference) ResourcePool:ha-root-pool,
 (types.ManagedObjectReference) HostSystem:ha-host,
 (types.ManagedObjectReference) VirtualMachine:10,
 (types.ManagedObjectReference) VirtualMachine:12,
 (types.ManagedObjectReference) VirtualMachine:13,
 (types.ManagedObjectReference) VirtualMachine:4,
 (types.ManagedObjectReference) VirtualMachine:6,
 (types.ManagedObjectReference) VirtualMachine:7
}
2020/05/03 16:25:48 Going inside ResourcePools
2020/05/03 16:25:48 ---resourcepool name - you should see every resourcepool here (+VMs inside)----
2020/05/03 16:25:48 Resources
2020/05/03 16:25:48 28063
2020/05/03 16:25:48 7539
2020/05/03 16:25:48 --VM ID - you should see every VM ID here--
2020/05/03 16:25:48 VirtualMachine:10
2020/05/03 16:25:48 --VM ID - you should see every VM ID here--
2020/05/03 16:25:48 VirtualMachine:7
2020/05/03 16:25:48 --VM ID - you should see every VM ID here--
2020/05/03 16:25:48 VirtualMachine:6
2020/05/03 16:25:48 --VM ID - you should see every VM ID here--
2020/05/03 16:25:48 VirtualMachine:4
2020/05/03 16:25:48 --VM ID - you should see every VM ID here--
2020/05/03 16:25:48 VirtualMachine:12
2020/05/03 16:25:48 --VM ID - you should see every VM ID here--
2020/05/03 16:25:48 VirtualMachine:13
2020/05/03 16:25:48 Sent data to Influxdb from: esxi.lan

But the Influx-database remains empty...

sofixa commented 4 years ago

Hi guys,

Normally, as long as the ESXi server has the API enabled ( meaning it has a license), most hypervisor and VM metrics are present.

@Appelg could you please run with the -test flag as well to see what is actually collected?

Appelg commented 4 years ago

@sofixa

root@30886db82c9f:/# vsphere-influxdb-go -test
2020/05/15 08:45:13 Starting vsphere-influxdb-go with config file /etc/vsphere-influxdb-go.json
2020/05/15 08:45:13 Successfully connected to Influx
2020/05/15 08:45:13 Connecting to vcenter: esxi.lan
2020/05/15 08:45:16 Setting up query inventory of vcenter: esxi.lan
(*client.batchpoints)(0xc4202b3560)({
 points: ([]*client.Point) <nil>,
 database: (string) (len=18) "vmware_performance",
 precision: (string) (len=1) "s",
 retentionPolicy: (string) "",
 writeConsistency: (string) ""
})

That's all I get... Maybe I need to config something on ESXI?

I have "VMware vSphere 6 Essentials Plus" with "vSphere API" listed under Licensing->Features

exetico commented 4 years ago

I'm on ESXi 6.5, and it's not working at all, I've tried whatever's possible/documented with no luck, so I would like a hint or so, if someone are able to help. If debugging details or so is required, kindly let me know :+1: