Environment
操作系统:Redhat 7
ReverseProxy:Apache(仅限)
通过以下方式部署:Docker

================================================== ======================

Issue:
是否可以在Apache反向代理中进行更改,以便我可以访问prometheus控制台
http://myserverurl/prometheus " -> " http://myserverurl/prometheus/graph

而不是目前失败
http://myserverurl/prometheus " -> " http://myserverurl/graph”(失败)

在反向代理之后,URL被重定向并且/ promethus消失 .

在Grafana设置中,我能够添加选项

(#docker run -d -p 3000:3000 --name = grafana -e“GF_SERVER_ROOT_URL = http://0.0.0.0/grafana”grafana / grafana)

这允许我通过访问Grafana控制台
http://myserverurl/grafana " -> " http://myserverurl/grafana/login”(成功)

================================================== ======================

Docker status:
docker run -d --name prometheus -p 9090:9090 prom / prometheus

Tested configuration for proxypass: (Did not work)
ProxyPass / prometheus http://0.0.0.0:9090/prometheus
ProxyPassReverse / prometheus http://0.0.0.0:9090/prometheus

Action:
试图访问“http://myserverurl/prometheus

Result Failed:
404页面不存在

================================================== ======================

But it is working if I change the configuration as below:
ProxyPass / http://0.0.0.0:9090/
ProxyPassReverse / http://0.0.0.0:9090/

访问网址“http://myserverurl/ " -> " http://myserverurl/graph

Result success:
================================================== ======================
Also tried following combination - Does not work:
ProxyPass / promethus / http://0.0.0.0:9090/
ProxyPassReverse / promethus / http://0.0.0.0:9090/