-
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
/metrics and probe routes does not respect web.route-prefix #1700
Comments
I have introduced this regression, sorry for the inconvenience. And add necessary tests to prevent it from happening again. |
BTW is it really regression? |
@bwplotka This I want to discuss as well. I guess intended usage And it flag description it says, I think it's not a regression, at least comparing to intended behaviour, I haven't checked what happens in older versions. What do you think? |
It is really mixed on Prometheus side as well. Metric endpoint is local, rest (debug and readiness) are prefixed. The question now is what is intended here (: |
@marcusramberg Assuming this was the behaviour for pre v0.8.1, wasn't it? |
I have no idea, I'm setting up a new cluster. But it is definitely the behavior I would expect. |
I would vote to stick debug and internal endpoints under the root, it is usually something you don't want to expose to outside, but happy to hear more opinions. |
Even though I agree that the debug endpoints should stay at the root it feels like doing some decision for the user. If he needs the prefix he probably already has some proxy in front of it where he can block those endpoints and on the other hand it can just complicate things for some uncommon use-cases 🤔 |
Fwiw Prometheus remaps health check according to web.external-url. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Tested on Thanos 0.8.1, but still applies in master.
Object Storage Provider:
What happened:
Even if you run query as
query --web-route-prefix="/thanos"
- metrics and probes are served from root.What you expected to happen:
Metrics should be served from /thanos/metrics
How to reproduce it (as minimally and precisely as possible):
Full logs to relevant components:
Anything else we need to know:
The text was updated successfully, but these errors were encountered: