open-telemetry / opentelemetry-collector-contrib

Contrib repository for the OpenTelemetry Collector
https://opentelemetry.io
Apache License 2.0
2.71k stars 2.14k forks source link

[receiver] vcenter - Multiple datacenters causes failures to collect Resource Pools, vApps, & VMs #33734

Open StefanKurek opened 4 days ago

StefanKurek commented 4 days ago

Component(s)

receiver/vcenter

What happened?

Description

Currently when collecting against an environment which contains multiple Datacenters, there is an issue with two of the client calls (ResourcePoolInventoryListObjects and VAppInventoryListObjects). The underlying govmomi client can only handle a default datacenter for these calls, and therefore only resources for 1 datacenter are being returned. This has a side effect of VMs not being created for the non returned objects as well.

Steps to Reproduce

Collect against an environment with multiple datacenters.

Expected Result

Collect metrics for resources under each datacenter.

Actual Result

Many metrics are failed to be created with errors in the logs.

Collector version

v0.102.0

Environment information

No response

OpenTelemetry Collector configuration

No response

Log output

No response

Additional context

No response

github-actions[bot] commented 1 day ago

Pinging code owners for receiver/vcenter: @djaglowski @schmikei @StefanKurek. See Adding Labels via Comments if you do not have permissions to add labels yourself.