Closed
Description
Component(s)
receiver/vcenter
What happened?
Description
Metrics from VMs belonging to a cluster are shown in the other cluster as well.
In our vCenter we have the following tree structure:
<root>
+-Datacenter1
+-Cluster1
| +-Host1
| +-Host2
+-Cluster2
| +-Host-C2-1
| +-Host-C2-2
| | +-VM1
| | +-VM2
| | +-VM3
| | +-VM4
| +-Host-C2-3
| +-ResourcePool1
| | +-VM1
| | +-VM2
| | +-VM3
| | +-VM4
Metrics from VM1, VM2, VM3 and VM4 appear under Cluster1->Host-C2-2 and on Cluster2->Host-C2-2. It seems that the relationship between the cluster and the host isn't reflected in the scraper code.
Also I couldn't find integration tests for multiple clusters examples.
Steps to Reproduce
Expected Result
The metrics for VMs to be under the cluster they belong to.
Actual Result
The VMs are reported under both clusters.
Collector version
0.77.0-dev, 0.90.1-dev
Environment information
Environment
vCenter Version: 7.0.3 Build: 19234570
OpenTelemetry Collector configuration
No response
Log output
No response
Additional context
No response