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 upIs there a way Prometheus can pass cookie in each scrape request to Spring Boot #4748
Comments
This comment has been minimized.
This comment has been minimized.
|
Prometheus supports basic HTTP, X509 client and bearer token authentications. |
This comment has been minimized.
This comment has been minimized.
|
Also to make your question, and all replies, easier to find, we suggest you move this over to our user mailing list, which you can also search. If you prefer more interactive help, join or our IRC channel, #prometheus on irc.freenode.net. Please be aware that our IRC channel has no logs, is not searchable, and that people might not answer quickly if they are busy or asleep. If in doubt, you should choose the mailing list. Once your questions have been answered, please add a short line pointing to relevant replies in case anyone stumbles here via a search engine in the future. |
This comment has been minimized.
This comment has been minimized.
|
After further research I have found out that there's no current way to set cookies via the scrape config. Prometheus supports only HTTP Authorization headers like Basic and Bearer tokens. |
Aracki commentedOct 16, 2018
I'm trying to scrape Spring Boot service running in production. We are using micrometer with prometheus registry:
Environment
Prometheus version:
I am running Prometheus in docker. Image: prom/prometheus:v2.4.2
Prometheus configuration file:
What is the proper way to pass through Spring Security? Is there a way for a Prometheus to send cookie with session id? What is the best practices here?
I have asked this on SO too.