Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect target endpoint link #2964

Closed
rvgate opened this Issue Jul 18, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@rvgate
Copy link

rvgate commented Jul 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:
    prometheus-targets

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Jul 24, 2017

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.

@lock

This comment has been minimized.

Copy link

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 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.
You can’t perform that action at this time.