Parcourir la source

update 优化 nacos prometheus 认证访问

疯狂的狮子Li il y a 1 an
Parent
commit
bcfddb431d
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      docker/prometheus/prometheus.yml

+ 4 - 0
docker/prometheus/prometheus.yml

@@ -31,6 +31,10 @@ scrape_configs:
     metrics_path: '/nacos/actuator/prometheus'
     static_configs:
       - targets: ['127.0.0.1:8848']
+    # monitor 监控的账号密码
+    basic_auth:
+      username: ruoyi
+      password: 123456
 
   - job_name: RuoYi-Cloud-Plus
     honor_timestamps: true