Skip to content

[receiver/vcenter] add per-object fallback when perf batch query fails#47278

Open
singhvibhanshu wants to merge 9 commits into
open-telemetry:mainfrom
singhvibhanshu:fix/PerfMetricsQueryFollowUp
Open

[receiver/vcenter] add per-object fallback when perf batch query fails#47278
singhvibhanshu wants to merge 9 commits into
open-telemetry:mainfrom
singhvibhanshu:fix/PerfMetricsQueryFollowUp

Conversation

@singhvibhanshu

Copy link
Copy Markdown
Member

Follow-Up #47005

Signed-off-by: singhvibhanshu <singhvibhanshu@hotmail.com>
@singhvibhanshu

Copy link
Copy Markdown
Member Author

Kindly take a look when anyone of you get a chance @songy23 @schmikei
Thank you!

@singhvibhanshu

Copy link
Copy Markdown
Member Author

@songy23,
Kindly take a look when you get a chance.
Thank you!

cc @ishleenk17, @bogdandrutu, @schmikei

@github-actions

github-actions Bot commented May 2, 2026

Copy link
Copy Markdown
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions Bot added the Stale label May 2, 2026
@singhvibhanshu

Copy link
Copy Markdown
Member Author

/not stale

@github-actions github-actions Bot removed the Stale label May 3, 2026
@singhvibhanshu

Copy link
Copy Markdown
Member Author

This PR got merge conflicts. I'll fix them soon.

@singhvibhanshu singhvibhanshu marked this pull request as draft May 21, 2026 11:10
# Conflicts:
#	receiver/vcenterreceiver/client.go
#	receiver/vcenterreceiver/client_test.go
Signed-off-by: singhvibhanshu <singhvibhanshu@hotmail.com>
Signed-off-by: singhvibhanshu <singhvibhanshu@hotmail.com>
@singhvibhanshu singhvibhanshu marked this pull request as ready for review June 2, 2026 13:45
@singhvibhanshu

Copy link
Copy Markdown
Member Author

@songy23,
Could you please take a look at it when you get a chance?
Thanks!

cc: @open-telemetry/collector-contrib-approvers

@axw

axw commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

This is fairly domain-specific, so will need to be reviewed by code owners.

@schmikei @ishleenk17 PTAL

return nil, err
for _, obj := range batch {
singleSample, singleErr := vc.pm.SampleByName(ctx, spec, names, []vt.ManagedObjectReference{obj})
if singleErr != nil {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than discarding these errors, we should aggregate and log them (at a debug level?) to support fixing issues with the receiver moving forward.

sample, err := vc.pm.SampleByName(ctx, spec, names, batch)
if err != nil {
return nil, err
for _, obj := range batch {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than exploding the number of queries can we read the error, remove the failing metric(s), and try again as a batch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants