-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[receiver/vcenter] Fixes multiple datacenters issue #33735
[receiver/vcenter] Fixes multiple datacenters issue #33735
Conversation
5d5a85c
to
f2e71fb
Compare
588a3cc
to
f5f74ae
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some minor wording nits, otherwise LGTM.
component: vcenterreceiver | ||
|
||
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). | ||
note: Fixes errors when multiple datacenters in some of the client calls. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: Fixes errors when multiple datacenters in some of the client calls. | |
note: Fixes errors in some of the client calls for environments containing multiple datacenters. |
Minor wording nit, the current wording of when multiple datacenters
is unclear (at least to me).
receiver/vcenterreceiver/scraper.go
Outdated
@@ -128,13 +130,30 @@ func (v *vcenterMetricScraper) scrapeAndProcessAllMetrics(ctx context.Context, e | |||
return errs.Combine() | |||
} | |||
|
|||
// scrapeDatacenterInventoryListObjects scrapes and store all Datacenter objects with their InventoryLists |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// scrapeDatacenterInventoryListObjects scrapes and store all Datacenter objects with their InventoryLists | |
// scrapeDatacenterInventoryListObjects scrapes and stores all Datacenter objects with their InventoryLists |
0980475
to
e2b7278
Compare
Description:
Fixes issue with client when there are multiple datacenters. Now first all datacenters (object type) will be collected. They will be passed into the problematic client methods. These methods will now set each datacenter in the list individually as the internal client finds the relevant objects and adds to a master list.
Link to tracking Issue:
#33734
Testing:
Unit test tweaked to find issue. Failure noted. Then passing after fix was added.
Documentation:
None needed.