open-telemetry / opentelemetry-collector-contrib

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

[receiver/vcenter] Support for VM snapshot age metric #36166

Open wally007 opened 2 weeks ago

wally007 commented 2 weeks ago

Component(s)

receiver/vcenter

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

I've migrated from Prometheus VMware exporter to OpenTelemetry but I noticed I lost ability to monitor snapshots. Since monitoring number of snapshots VM has and snapshot age is crucial in VMware environment, could you please add the metrics ?

Example from vmware_exporter

vmware_vm_snapshot_timestamp_seconds{cluster_name="Room1A2", dc_name="Equinix", instance="refinst-vcenter.ref", job="vmware-20s", vm_name="hermes", vm_snapshot_name="VM Snapshot 9%2f22%2f2024, 9:44:15 AM"} 1726991058.813261

Describe the solution you'd like

New metric added for VM objects with snapshot timestamp

Describe alternatives you've considered

No response

Additional context

No response

github-actions[bot] commented 2 weeks ago

Pinging code owners:

djaglowski commented 1 week ago

cc @StefanKurek

StefanKurek commented 1 week ago

@wally007 I don't have any immediate plans to extend this receiver at the moment. I think the suggestion is a good one though. Adding snapshots probably wouldn't be a very difficult addition. Although I did a quick look and I'm actually having trouble finding where snapshot age would come from (I might have to look at the prometheus exporter to figure that one out).