enhancement(prometheus scrape): support request headers - #26075
Conversation
Generated with OpenAI Codex (GPT-5.6).
|
Thank you for your contribution! Before we can merge this PR, please sign our Contributor License Agreement. To sign, copy and post the phrase below as a new comment on this PR.
I have read the CLA Document and I hereby sign the CLA 1 out of 2 committers have signed the CLA. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 33d78fa28a
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
I have read the CLA Document and I hereby sign the CLA |
|
recheck |
pront
left a comment
There was a problem hiding this comment.
Taking a look at the failing CLA check
Summary
Adds configurable HTTP request headers to the
prometheus_scrapesource. Configured headers are passed to Vector’s shared HTTP client, including support for overriding the defaultAcceptheader.Vector configuration
How did you test this PR?
cargo fmt --all -- --checkcargo test --no-default-features --features sources-prometheus-scrape sources::prometheus::scrape::test -- --nocapture— 7 passedcargo clippy --no-default-features --features sources-prometheus-scrape --lib -- -D warningsIs this a breaking change?
Does this PR include user facing changes?
References
Closes #19656
Notes
Implemented with assistance from OpenAI Codex (GPT-5.6)