Skip to content

feat: support arbitrary query params in request #1825

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alecmerdler
Copy link

Adds WithCustomOption() func which allows
setting arbitrary key/value pairs to the URL
query parameters of the request.

The primary use case for this is to work with
https://github.com/prometheus-community/prom-label-proxy.

Adds 'WithCustomOption()' func which allows
setting arbitrary key/value pairs to the URL
query parameters of the request.

The primary use case for this is to work with
https://github.com/prometheus-community/prom-label-proxy.

Signed-off-by: Alec Merdler <[email protected]>
@alecmerdler alecmerdler force-pushed the support-arbitrary-query-params branch from 7a81563 to d46b13d Compare June 30, 2025 16:38
@alecmerdler
Copy link
Author

This is a naive approach, I will be happy to update the pull request with any feedback. But as it stands today, the official Prometheus client cannot be used with prom-label-proxy.

@kakkoyun
Copy link
Member

@alecmerdler Let's open an issue and discuss this further before jumping into any conclusions.

I would love to learn more about your use cases, especially.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants