-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[receiver/prometheus] Add fallback_scrape_protocol when using target allocator #39672
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/prometheus] Add fallback_scrape_protocol when using target allocator #39672
Conversation
…allocator This applies a similar fix as 72b834b, but when using TargetAllocator. Signed-off-by: MATILLAT Quentin <[email protected]>
Is there a way to test this? Please add a changelog. |
…l addition when using target allocator Signed-off-by: MATILLAT Quentin <[email protected]>
This tests that the provided value is properlly forwared, and if there is no value, that a default is applied Signed-off-by: MATILLAT Quentin <[email protected]>
I created the changelog entry, and added a test. |
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.
Seems reasonable to me, approved with nit comments.
Co-authored-by: George Krajcsovits <[email protected]>
Hmm, looks like we're getting blocked by a vulnerability in another component. I'm going to rebase the PR on top of main to see if it get's solved |
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.
It worked!
…allocator (open-telemetry#39672) This applies a similar fix as 72b834b, when using TargetAllocator. #### Description For the same reason as we already add a `fallback_scrape_protocol` to the config, this PR add the same behavior when using the Target Allocator. It's important for me, as even the `fallbackScrapeProtocol` from the Prometheus CRD is ignored (I guess it's because the allocator advertise itself as version 2.55.1, which does not support (nor require) `fallback_scrape_protocol`). Maybe it's a change that should be done on the target-allocator side, but I kind of like the symmetry with what we're already doing with provided configuration. #### Link to tracking issue Same issue as open-telemetry#37902, but when using a target allocator --------- Signed-off-by: MATILLAT Quentin <[email protected]> Co-authored-by: George Krajcsovits <[email protected]> Co-authored-by: Arthur Silva Sens <[email protected]>
This applies a similar fix as 72b834b, when using TargetAllocator.
Description
For the same reason as we already add a
fallback_scrape_protocol
to the config, this PR add the same behavior when using the Target Allocator.It's important for me, as even the
fallbackScrapeProtocol
from the Prometheus CRD is ignored (I guess it's because the allocator advertise itself as version 2.55.1, which does not support (nor require)fallback_scrape_protocol
).Maybe it's a change that should be done on the target-allocator side, but I kind of like the symmetry with what we're already doing with provided configuration.
Link to tracking issue
Same issue as #37902, but when using a target allocator