Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upAllow query params for scrape endpoints. #675
Comments
This comment has been minimized.
This comment has been minimized.
|
With #786 this becomes reality. We need to define some rules regarding parameter names.
|
This comment has been minimized.
This comment has been minimized.
|
I think encouraging _ for applications we don't control would be tricky, and suggest this logic be put the other way around. I'd also expect that anyone passing things to endpoints is going to either be sufficiently custom that there's nothing you'd want to pass to the Prometheus handler, or you're only talking to the prometheus handler. |
This comment has been minimized.
This comment has been minimized.
|
I'm not really willing to do prefixing for fundamental parameters of the actual application in favor of some potential custom setup. Especially because it doesn't guarantee anything if we assume the user may use anything. We can also go for 0 restrictions, given the low chance of actual collisions, and expect people to do some renaming in their reverse proxies if required. |
This comment has been minimized.
This comment has been minimized.
|
Query parameters implemented via #786. TODO: Expose query parameters for relabeling. |
This comment has been minimized.
This comment has been minimized.
|
#934 added relabelling. |
brian-brazil
closed this
Aug 20, 2015
simonpasquier
pushed a commit
to simonpasquier/prometheus
that referenced
this issue
Oct 12, 2017
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 24, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
fabxc commentedMay 5, 2015
Getting different scrape contents based on query parameters can be a useful addition.
The discussion started with #674. As stated there, I would like to avoid proxying by query parameters but only use them for actual modifications. But the line gets blurry quite fast.
As the issue of the PR will be resolved by relabeling, this is not too urgent for now.