Skip to content

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

Description

@StefanKurek

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions