enhancement(prometheus scrape): support request headers - #26075
Conversation
Generated with OpenAI Codex (GPT-5.6).
|
All contributors 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
1eec1c1 to
85ac28e
Compare
|
The CLA failure is resolved. The original commits used an email address that GitHub did not associate with my account, so I rewrote their author/committer emails to my verified GitHub noreply address without changing the file tree. The CLA check now passes. |
|
@pront CLA is now passing and the branch has been updated with the latest |
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)