jacksontj / promxy

An aggregating proxy to enable HA prometheus
MIT License
1.12k stars 126 forks source link

Add support for `--web.route-prefix` #636

Closed sushovan23 closed 4 months ago

sushovan23 commented 5 months ago

I have deployed promxy in k8s using helm chart. exposing it using nginx ingress controller however I want to access it using endpoint like /promxy-prod instead of just / If there any configuration available to set httpprefix path?

sushovan23 commented 5 months ago

may be something similar to what prometheus provides with --web.route-prefix

jacksontj commented 4 months ago

Thanks for the question! As of today the only mechanism supported as of now is to use the externalUrl -- but it seems that upstream has since added a --web.route-prefix as well, so we could add that to promxy to match.

But if you need something now using externalUrl will do the trick (thats what I've been using).

I've renamed this issue to be a feature request for that flag -- which should be a simple change to make.