open-telemetry / opentelemetry-collector-contrib

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

[receiver/vcenter] Additional metrics for vCenter receiver #33607

Open BominRahmani opened 3 weeks ago

BominRahmani commented 3 weeks ago

Component(s)

receiver/vcenter

Is your feature request related to a problem? Please describe.

There are various metrics that we don't currently capture or could capture at a higher level.

Describe the solution you'd like

These metrics can most aptly be categorized under three categories:

Datacenter

- vcenter.datacenter.cluster.count                 status={red/green/yellow}
- vcenter.datacenter.vm.count                      status={red/green/yellow} power_state={on/off/suspended}
- vcenter.datacenter.datastore.count               status={red/green/yellow}
- vcenter.datacenter.host.count                    status={red/green/yellow} power_state={on/off}
- vcenter.datacenter.disk.space                    disk_state={available/used}
- vcenter.datacenter.cpu.limit
- vcenter.datacenter.memory.limit

Some of these proposed metrics may resemble existing ones, such as vcenter.datacenter.vm.count, which is similar to the currently captured vcenter.cluster.vm.count. However, the proposed metric aggregates through these alongside other vm's that may exist outside a cluster level. In effect providing a total/aggregated look into how many vms exist under that datacenter.

Host

- vcenter.host.network.packet.drop.rate    direction={transmitted/received}
- vcenter.host.cpu.capacity                reserved={true/false}

Resource pool

- vcenter.resource_pool.memory.swapped
- vcenter.resource_pool.memory.ballooned
- vcenter.resource_pool.memory.private
- vcenter.resource_pool.memory.shared
- vcenter.resource_pool.memory.usage          (currently exists: alteration -> type={guest/host/overhead})

Virtual machine

- vcenter.vm.cpu.readiness

If approved, I can split these enhancements out into 4 separate PR's.

Describe alternatives you've considered

No response

Additional context

No response

github-actions[bot] commented 3 weeks ago

Pinging code owners:

crobert-1 commented 2 weeks ago

Removing needs triage based upon code owner responding 👍 to this issue.