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
posted @ 2021-11-20 14:09  哈喽哈喽111111  阅读(649)  评论(0编辑  收藏  举报