Hello everyone!
I am fetching vsphere metrics from 2 different vsphere hosts, containing 5 different datacenter.
- module: vsphere
metricsets: ["host" , "virtualmachine"]
period: 10s
hosts: ["https://vcenter.host/sdk"]
username: "elkmonitor"
password: "**********"
insecure: true
fields:
environment: hq
While this works pretty well, I discovered that some, not all, of my virtual machines change their recorded datacenter within the 10 seconds polling period.
vsphere.virtualmachine.name.keyword: host0123.my.domain.com
vsphere.virtualmachine.datacenter.keyword: Datacenter_A
turns into
vsphere.virtualmachine.name.keyword: host0123.my.domain.com
vsphere.virtualmachine.datacenter.keyword: Datacenter_B
and back with the next poll. I can assure you there is no vmotion going on in between. The VMs are not duplicate.
This applies to the virtualmachine metricset, host metricset is not affected, for the datastore metricset I cannot tell as we have the duplicate datastore names within the datacenters.
We are using vsphere Version 6.5.0 Build 4602587.
Metricbeat is running with version 6.0.1
Has anybody seen something like this before?

