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

--web.route-prefix doesn't work as expected #4004

Open
beorn7 opened this Issue Mar 23, 2018 · 3 comments

Comments

Projects
None yet
4 participants
@beorn7
Copy link
Member

beorn7 commented Mar 23, 2018

What did you do?

Ran prometheus with --web.route-prefix=/prefix

What did you expect to see?

All paths prefixed with /prefix

What did you see instead? Under which circumstances?

  • http://localhost:9090/prefix redirects to http://localhost:9090/graph, which obviously doesn't work.
  • Typing http://localhost:9090/prefix/graph explicitly still has little success because all the /static/ resources are not prefixed.
  • Prometheus version:

prometheus, version 2.2.0 (branch: master, revision: 60dafd4)
build user: bjoern@reasonableresolution
build date: 20180323-15:46:34
go version: go1.10

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Jun 8, 2018

#4025 was not the right fix for this. Can you indicate what the external URL was in this case?

@abh

This comment has been minimized.

Copy link

abh commented Jun 8, 2018

It seems like the original problem here would have been fixed by using external-url instead of route-prefix.

@juliusv

This comment has been minimized.

Copy link
Member

juliusv commented Jun 19, 2018

Has this been fixed in #4256 now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.