Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vcenter.cluster.vm.count reports datacenter VMs as amount for all member clusters #33445

Closed
nicolai-hornung-bl opened this issue Jun 10, 2024 · 7 comments
Assignees
Labels
bug Something isn't working receiver/vcenter

Comments

@nicolai-hornung-bl
Copy link

Component(s)

receiver/vcenter

What happened?

Description

The vcenter.cluster.vm.count that should provide the number of virtual machines in a cluster only works correctly if the managing vCenter only has a single cluster. If there are multiple clusters registered the metric will be the same for all member clusters and reports the total number of VMs in the datacenter for each of them.

Steps to Reproduce

  • Have a vCenter with two or more clusters, each with VMs

Expected Result

  • Each cluster should be reported with it's own number of VMs

Actual Result

  • All clusters have the amount VMs in the Datacenter

Collector version

v0.87.0

Environment information

Environment

Running the embedded receiver in Grafana Alloy however as the rest of the data seems to be formatted correctly I suspect this is an issue in the upstream component.

OpenTelemetry Collector configuration

No response

Log output

No response

Additional context

No response

@nicolai-hornung-bl nicolai-hornung-bl added bug Something isn't working needs triage New item requiring triage labels Jun 10, 2024
Copy link
Contributor

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@StefanKurek
Copy link
Contributor

@djaglowski

@nicolai-hornung-bl Are you able to try a newer version of the collector? This should have been fixed starting at version 0.97.0. Thanks!

@nicolai-hornung-bl
Copy link
Author

Hi @StefanKurek in that case I will ask whether grafana/alloy can update their dependency. I couldn't find exactly what version they were pulling anyway but their docs linked to the 0.87.0 version so I took this. I will come back to you once I have more info.

@StefanKurek
Copy link
Contributor

@nicolai-hornung-bl Do you know exactly what version of Alloy you were using? I think at one point they were using an older version of the collector but the newest version should not have this issue.

@nicolai-hornung-bl
Copy link
Author

nicolai-hornung-bl commented Jun 11, 2024

@StefanKurek, currently I'm running Alloy version 1.0.0 as 1.1 is bugged.

@StefanKurek
Copy link
Contributor

@nicolai-hornung-bl ah. Well whenever you are able to switch to a newer version of Alloy, that should take care of it. Starting with version v1.1.0 of Alloy, this issue should no longer be there.

@nicolai-hornung-bl
Copy link
Author

Hi @StefanKurek I upgraded to v1.2.0 and can confirm it's fixed. Sorry for the confusion and thanks for checking!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working receiver/vcenter
Projects
None yet
Development

No branches or pull requests

3 participants