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 upIncorrect target endpoint link #2964
Comments
This comment has been minimized.
This comment has been minimized.
|
This is by design, it's an old feature so that if you are on another machine and Prometheus is scraping "localhost" you'll still go to the right place. |
brian-brazil
closed this
Jul 24, 2017
brian-brazil
added
the
kind/question
label
Jul 24, 2017
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 23, 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. |
lock
bot
locked and limited conversation to collaborators
Mar 23, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
rvgate commentedJul 18, 2017
What did you do?
wget https://github.com/prometheus/prometheus/releases/download/v1.7.1/prometheus-1.7.1.linux-amd64.tar.gz
tar xvfz prometheus-1.7.1.linux-amd64.tar.gz
cd prometheus-1.7.1.linux-amd64/
./prometheus
Then navigate to http://localhost:9090/targets
Tried both with:
prometheus-2.0.0-beta.0.linux-amd64.tar.gz
prometheus-1.7.1.linux-amd64.tar.gz
What did you expect to see?
I expected the Endpoint target link to be matching the link description. Clicking it should get me to that location. For example, the default target "http://localhost:9090/metrics" should bring me to "http://localhost:9090/metrics" when you click it.
What did you see instead? Under which circumstances?
The target "http://localhost:9090/metrics" brings me to "http://myhostname:9090/metrics"
System information:
Linux 4.4.0-83-generic x86_64
Prometheus version:
prometheus, version 1.7.1 (branch: master, revision: 3afb3ff)
build user: root@0aa1b7fc430d
build date: 20170612-11:44:05
go version: go1.8.3
Prometheus configuration file:
unchanged
Alertmanager configuration file:
unchanged
Logs:
nothing relevant
Screenshot:
