Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign up/debug/pprof endpoints return 404 when using -web.route-prefix #2183
Comments
beorn7
added
the
kind/bug
label
Nov 14, 2016
brian-brazil
added
priority/P2
low hanging fruit
component/ui
help wanted
and removed
help wanted
labels
Jul 14, 2017
This comment has been minimized.
This comment has been minimized.
|
I'd love to take a shot at this one. |
mark-adams
referenced this issue
Aug 10, 2017
Merged
Fix pprof endpoints when -web.route-prefix or -web.external-url is used #3054
mark-adams
added a commit
to mark-adams/prometheus
that referenced
this issue
Aug 19, 2017
juliusv
closed this
in
#3054
Aug 22, 2017
juliusv
added a commit
that referenced
this issue
Aug 22, 2017
This comment has been minimized.
This comment has been minimized.
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
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.
mberhault commentedNov 13, 2016
What did you do?
Running prometheus with
-web.external-url=http://<myhost>:9090/prometheus/, also tried with just--web.route-prefix=/prometheusNormal endpoints work fine (everything prepended with
/prometheus/).Attempted to hit the
/debug/pprof/endpoints (fromnet/http/pprof) when trying to provide more information for #1873.What did you expect to see?
404 for all pprof endpoints. Tried both with and without the prefix:
/debug/pprof/prometheus/debug/pprofWithout the
--web.route-prefixflag, the default enpoints work just fine.What did you see instead? Under which circumstances?
I would expect working
/debug/pprofendpoints since those get automatically registered through the handler.Environment
I first noticed this in production, running with
-web.external-urlsince we're sitting behind oauth2_proxy. This was easily reproducible locally.System information:
Darwin 14.3.0 x86_64
Linux 3.16.0-4-amd64 x86_64
Prometheus version:
prometheus, version 1.2.3 (branch: master, revision: c1eee5b)
build user: root@d8eb84e17a12
build date: 20161103-21:46:57
go version: go1.7.3
Alertmanager version:
N/A
Prometheus configuration file:
N/A
Alertmanager configuration file:
N/A
Logs:
Absolutely nothing shows up in the logs: