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 upProposal: more flexible token configure in scrape_config #4491
Comments
This comment has been minimized.
This comment has been minimized.
|
Thanks for your suggestion. We purposefully avoid supporting non-standard auth mechanisms, as that would be challenging to maintain and be a rabbit hole feature wise. In addition allowing arbitrary headers to be passed would make debugging for users quite a bit more difficult, as it wouldn't be possible to look at a /metrics in a browser. If you have a system that doesn't support basic auth, bearer tokens or ssl mutual auth I would suggest using proxy_url to have a proxy that can alter the request as needed. |
This comment has been minimized.
This comment has been minimized.
|
Thanks for your reply; thanks |
This comment has been minimized.
This comment has been minimized.
|
Something else to consider is if you really need to tie into your existing rest setup. Metrics is more an admin/debug endpoint, so you may wish to handle it however you usually handle those. |
zjwzte
closed this
Aug 22, 2018
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. |
zjwzte commentedAug 13, 2018
Proposal
**Use case. **
in our exist system, we'd like to provide restful api for prometheus to scripe metrics;
however,in our system we use self-define http head "Access-Token" to take token info, to use prometheus
we have to resolve http head "Authorization" used in prometheus scripe http request;
Can more flexible token configure in scrape_config be provided to specify use which http head key to take
token info;
thanks