-
Notifications
You must be signed in to change notification settings - Fork 832
Closed
Labels
Description
Currently the weaveworks/common server has the option for a -server.path-prefix
flag. Setting this flag in Cortex will cause all requests routed to the prometheus API struct to fail with a 404.
Prometheus registers routes with a hardcoded /api/prom/api/v1/
prefixed route. When requests are routed from the weaveworks server to the Prometheus API promRouter
they are expected to have the /api/prom/api/v1
prefix. If the flag -server.path-prefix
is set to /example
, then traffic will only be routed to the promrouter at the /example/api/prom/api/v1
route. Since this path is different then the hardcoded promrouter prefix, it will always return a 404.