Skip to content
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

Allow query params for scrape endpoints. #675

Closed
fabxc opened this Issue May 5, 2015 · 6 comments

Comments

Projects
None yet
2 participants
@fabxc
Copy link
Member

fabxc commented May 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.

@fabxc

This comment has been minimized.

Copy link
Member Author

fabxc commented Jun 11, 2015

With #786 this becomes reality. We need to define some rules regarding parameter names.
I'd propose:

  • _.+ for exporting applications
  • __.+ for anything standing between an exporting application and Prometheus
  • [^_]+ for the Prometheus handler
@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Jun 11, 2015

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.

@fabxc

This comment has been minimized.

Copy link
Member Author

fabxc commented Jun 11, 2015

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.

@fabxc

This comment has been minimized.

Copy link
Member Author

fabxc commented Jun 11, 2015

Query parameters implemented via #786.

TODO: Expose query parameters for relabeling.

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Aug 20, 2015

#934 added relabelling.

simonpasquier pushed a commit to simonpasquier/prometheus that referenced this issue Oct 12, 2017

Add ElasticSearch exporter (prometheus#675)
This commit adds the ElasticSearch stats exporter
@lock

This comment has been minimized.

Copy link

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.

@lock lock bot locked and limited conversation to collaborators Mar 24, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.