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 upHow to use optional HTTP URL parameters. #1417
Comments
brian-brazil
added
the
question
label
Feb 22, 2016
This comment has been minimized.
This comment has been minimized.
|
Params is a list, so do:
|
This comment has been minimized.
This comment has been minimized.
|
Thanks! |
brian-brazil
closed this
Feb 22, 2016
This comment has been minimized.
This comment has been minimized.
|
@brian-brazil Does it equivalent to |
This comment has been minimized.
This comment has been minimized.
|
Yes, that's what it does, |
This comment has been minimized.
This comment has been minimized.
|
Also prometheus does Content-Type negotiation, so you may want to consider using that. |
This comment has been minimized.
This comment has been minimized.
|
Yep, Prometheus currently sends this Accept header to any target it scrapes:
That's maybe a better way of determining the format to serve. |
This comment has been minimized.
This comment has been minimized.
paixaop
commented
Feb 22, 2018
|
Brian Is it possible to have different
Then have the following JSON file
The devices I need to monitor cannot have a |
This comment has been minimized.
This comment has been minimized.
|
@paixaop You can set the metrics path and HTTP params via the |
This comment has been minimized.
This comment has been minimized.
alvaroaleman
commented
Mar 9, 2018
|
Quick correction on that one for other folks that may find this via Google: The meta label for params is |
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 22, 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. |
andriisoldatenko commentedFeb 22, 2016
I try to use different versions of using this
paramsinprometheus.ymland it is not working for me :(My
prometheus.ymllooks like:Also I can't find any tests.
I see only this error:
Do you have ideas how to fix it?