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 upSupport for HTTP Headers when performing metrics scraping #2346
Comments
This comment has been minimized.
This comment has been minimized.
|
A small proxy server would be the best way to handle this. Offering headers to users would likely see them used in cases where other solutions would be more appropriate, and make debugging a lot more difficult. |
This comment has been minimized.
This comment has been minimized.
|
Hi Brian, I see your point. Do you have in mind any proxy in particular? Thanks! |
This comment has been minimized.
This comment has been minimized.
|
Probably easiest to write something quickly yourself, though something like HAProxy is probably configurable to do this by taking it from a url parameter and making it into a header. |
This comment has been minimized.
This comment has been minimized.
|
This has been requested several times in the past and was rejected. So closing here. Please see #1724 for past discussion. |
fabxc
closed this
Jan 17, 2017
eaglerainbow
added a commit
to promregator/promregator
that referenced
this issue
Mar 4, 2018
eaglerainbow
added a commit
to promregator/promregator
that referenced
this issue
Mar 4, 2018
This comment has been minimized.
This comment has been minimized.
eaglerainbow
commented
Mar 4, 2018
|
@ihr You might find https://github.com/promregator/promregator interesting (still in experimental stage, though). |
uepoch
referenced this issue
Sep 25, 2018
Closed
Support token passed in Authorization Bearer HTTP header #5396
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. |
ihr commentedJan 17, 2017
Hi guys,
I am facing a scenario in which I need to scrap the metrics from microserices deployed on a PaaS (Cloud Foundry). In order to get the metrics from individual instances of a microservice, I need to send a header
X-CF-APP-INSTANCE: APP_GUID:APP_INDEXwhere APP_GUID change at runtime APP_INDEX. Here is a link to the docs. I haven't found anything that could help me in the current version of Prometheus. Would you consider this feature important and would you accept a pull request? Or am I missing something, is this already possible somehow?