Prometheus使用nginx 设置二级路径反向代理

1.nginx 设置

    location /promethues/ {
        proxy_pass http://10.xx.xxx.55:9090/prometheus/;
    }

2.设置prometheus子路径
在启动的时候根据命令行的参数来进行子路径设置。

./prometheus --web.external-url=prometheus --config.file=prometheus.yml
原文地址:https://www.cnblogs.com/sanduzxcvbnm/p/15581098.html