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 up"no token found" with scheme: https #3032
Comments
gouthamve
added
dev-2.0
kind/bug
labels
Aug 7, 2017
This comment has been minimized.
This comment has been minimized.
|
We tested this ourselves right now. Scraping an https target worked fine. |
This comment has been minimized.
This comment has been minimized.
|
Closing since this is most likely a connectivity issue from the Prometheus instance. Please reopen if you found out something indicating otherwise. |
fabxc
closed this
Sep 22, 2017
This comment has been minimized.
This comment has been minimized.
oxie
commented
Apr 17, 2018
|
Guyz i have to ask you because i am breaking my head over and over, doing prometheus sd discovery while runing as app on DCOS, with new dcos version 1.11 i can get the metrics on port 61091 without a problem, but seeing on each node is exposed a different marathon metrics port 5050 (masters) 5051(slaves), so when targeting them i get the no token problem, i assuemed it might need marathon dcos bearer token or marathon_sd_configs module, but seems that its not working at all. Any idea how to pass http token when using dns_sd_configs? Thanks you! |
This comment has been minimized.
This comment has been minimized.
msglueck
commented
Jun 11, 2018
|
Howdy, The URL is behind an Apache 2.4 reverse proxy which does the SSL termination (Confluence is hosting the endpoint with a Tomcat). The Apache has a typical HTTPS setup (RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent] and on 443 vhost RequestHeader set X-Forwarded-Proto "https"). We noticed when temporarily removing the HTTPS redirect in Apache and use the HTTP scheme Prometheus scraped the target. The solution we found in the end was keeping the scrape URL in Prometheus as HTTP and let the Apache do the redirect to HTTPS. So to sum it up: there seems to be an issue with https scheme that sometimes pops up, but I wasn't able to get more info out of Prometheus on the cause. So if you can give some hints on how to debug this, I am happy to help out. |
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. |
alexanderfeder commentedAug 7, 2017
•
edited
What did you do?
Scraping the same target (node exporter v0.14) via http and https (on the same host, both http and https are served through an Apache 2.4.25 reverse proxy, valid cert).
There is no difference in the metrics output between http and https when fetching via curl (apart from the obvious fluctuations of the numerical values)
Currently basic auth is configured, but also without that I get the same results.
Following command shows that there is no difference:
A snippet of the output without removing the values using awk:
What did you expect to see?
That both targets work, alas scraping via https does not and results in a "no token found"
What did you see instead? Under which circumstances?
The https target is not scraped by prometheus.
Environment
Do you have any ideas? Thanks a lot!