-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Thanos bucket Web: Provide support to flag web.route-prefix which help to route UI properly #3211
Comments
Thanks for reporting, it's a bug, help wanted to fix it. (: |
hello, can I take a look into it? |
@fagossa Yeah sure. Please go ahead. |
What is the status of the issue? Is it alright to take it? |
hello @aribalam , I'm new to this project so I'm having a hard time testing. If you have the time please go ahead! Anyways I was looking to this place in instrf := func(name string, next func(w http.ResponseWriter, r *http.Request)) http.HandlerFunc {
return ins.NewHandler(b.externalPrefix + "/" + name, http.HandlerFunc(next))
} |
@fagossa I think still it will error out for unknown flag
I think this logic might be helpful. |
@dmilind You are right. The router is not getting prefixed with the |
Any update on this? |
Hello 👋 Looks like there was no activity on this issue for the last two months. |
I would like to work on this issue. |
Hello 👋 Looks like there was no activity on this issue for the last two months. |
@Abhishek357 Thanks for providing a fix for this. Would it be possible to rebase the open MR? I think that's all that is blocking it from merging. |
Yeah! sure. Done :) |
Thanos, Prometheus and Golang version used:
Using official docker image: thanosio/thanos:v0.15.0
Object Storage Provider: Ceph storage blocks
What happened:
I am using Thanos tools bucket web with
--web.external-prefix=/thanos/bucket
. Once I hit URL http://localhost:9090/thanos/bucket (k8s service being forwarded to 9090 from 10902 internally), I get 404. When I hit http://localhost:9090 then it shows HTML links only, and when I click on any link it routes me via a prefix path which is okay but again 404. When going through the documentation, I foundFlag
web.route-prefix
is mentioned but bucket web does not support it.I faced a similar issue with the querier and it got resolved when I used
web.route-prefix
flag.When I am trying to use this flag for Thanos tools bucket web, it says there is not support for the flag
web.route-prefix
.What you expected to happen:
Bucket web UI should be loaded behind the proxy and this can be done by providing support of
web.route-prefix
flag which is missing as of now.How to reproduce it (as minimally and precisely as possible):
1
2 http://localhost:9090/thanos/bucket
404 page not found
3 http://localhost:9090
HTML UI is displayed and then 404 page not found after clicking a link
Full logs to relevant components:
After providing '--web.route-prefix':
Anything else we need to know:
I see a similar issue with compact web #2727. If it is fixed then bucket web UI can be fixed easily.
The text was updated successfully, but these errors were encountered: