-
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
[Query Frontend] support flag --web.external-url
#6370
Comments
@chrisduong did you manage to fix the issue ? I'm seeing the same thing in my deployment! |
No, this flag is not implemented yet. |
I think I managed to troubleshoot a little bit but I hit a roadblock. The issue shows up in the Rules and Alerts pages, when hovering on an expression instead of having the right URL I get Something I noticed is that on the JS console when I'm trying to output However, running both
Would give me locally the right THANOS_QUERY_URL. We are using the bitnami built image, but then again, after @vide ran it locally we were able to see that the said variable is showing correctly in the console, so something must be wrong with the way we deploy the binary, and this is where I hit a roadblock. We are running on Kubernetes, and an excerpt of the
Which according to the documentation should work. Anything like your deployment setup @chrisduong ? How are you deploying your Ruler ? Because the fact it works locally, both running a container and the bare binary leads me to think it has something to do with the deployment method. |
I have the same issue. In the
And the ruler itself has the correct command line options:
But the links in the thanos queryFrontend UI are still broken (pointing to localhost) |
The `THANOS_QUERY_URL` constant is already assigned to `{{ .queryURL }}` in `public/index.html`. Remove this comparison, as it causes the `--alert.query-url` command line option to have no effect whatsoever. Fixes thanos-io#6370 Signed-off-by: Steffen Neubauer <stefreak@googlemail.com>
Something must be wrong with |
I believe this was fixed by #4847. I can't reproduce this neither in Query UI, neither in the Ruler UI. Do you also see this problem in the Query UI (not on query-frontend)? |
I decided to test everything throughly today, in order to find what was needed for the alert.query-url arg to work on kubernetes. I managed to reproduce both the error and the solution and it resides on the fact that --alert.query-url must be set on the query pod, which is then forwarded to the query-frontend pod without the need of additional args. TL;DR: |
Exactly! I was missing |
Is your proposal related to a problem?
I know there was already an request before #364, but I don't think it was resolved completely and it may worth another try (because this is quite a stable feature of Prometheus for a long time).
I deployed Thanos behind a reverse proxy with an external URL (for e.g. https://thanos.example.com)
The Thanos UI for Rules contain wrong the "URLs" for Rule Expressions, they always refer to "http://localhost:10902" as the web URL, not the external URL "https://thanos.example.com".
For e.g. the "AlertManagerClusterDown" Rule Expressions will have the URL like this:
Without this feature, user has to copy the Rule Expressions URL, and replace the "http://localhost:10902" with "https://thanos.example.com" to be able to review the expression result in Thanos.
I hope we can make it work this time. Thank you 🙂
Describe the solution you'd like
If Query Frontend can understand that it is served behind a reverse proxy with the external URL, Rule Expressions should use the external URL instead.
For e.g:
The text was updated successfully, but these errors were encountered: