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

params for proxied modules #61

Closed
tykling opened this issue Dec 14, 2020 · 1 comment
Closed

params for proxied modules #61

tykling opened this issue Dec 14, 2020 · 1 comment

Comments

@tykling
Copy link
Contributor

tykling commented Dec 14, 2020

Hello,

I am trying to use blackbox_exporter which needs among other things a "module" parameter, but I cant figure out how to send it.

README mentions that the /proxy endpoint supports a "params" parameter:

params (optional): named parameter to pass to the module (either as CLI args, or http parameters).

Is there an example of how to use this somewhere? I tried to find it in the code but I couldn't find anything. Trying it out it seems to only a (list of) strings, not a dict/map, so how does one give a named parameter to the proxied module?

Thanks! :)

@tcolgate
Copy link
Collaborator

Hi,
Sorry for the delay in replying. The README was incorrect, it was referring to an old behaviour (before 0.3 I think). The current behaviour is to pass all query string arguments given to the exporter (excluding the first module argument), to the backend. I've updaed the readme to include a specific example for the blackbox exporter, I hope that help.s

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

No branches or pull requests

2 participants