仲秋花似锦

关注

Prometheus监控之使用nginxBasic认证

仲秋花似锦

关注

阅读 135

2022-11-25

mkdir -p /etc/nginx
htpasswd -c /etc/nginx/.htpasswd admin

http {
server {
listen 12321;

location /prometheus {
auth_basic "Prometheus";
auth_basic_user_file /etc/nginx/.htpasswd;

proxy_pass http://localhost:9090/;
}
}
}

实际访问地址:http://localhost:12321/prometheus/metrics

相关推荐

juneyale

Prometheus监控学习笔记之Prometheus监控简介

juneyale 192 0 0

高子歌

Prometheus监控之login 登录认证界面(nginx + flask 实现)

高子歌 68 0 0

小龟老师

Prometheus监控之thanos+minio+prometheus(Prometheus)

小龟老师 53 0 0

认真的老去

prometheus黑盒监控之http监控

认真的老去 124 0 0

月半小夜曲_

​​Prometheus监控之kafka

月半小夜曲_ 42 0 0

暮晨夜雪

Prometheus监控之TLS

暮晨夜雪 160 0 0

代码敲到深夜

​​Prometheus监控之Relabeling

代码敲到深夜 21 0 0

AbrahamW

​​Prometheus监控之​zookeeper

AbrahamW 35 0 0

史值拥

Prometheus监控之SpringBoot

史值拥 48 0 0

zidea

Prometheus监控之Docker

zidea 63 0 0

精彩评论(0)

0 0 举报