From 52559f1aaddcce2b48fa5e637bdaa46eead4ee42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90Li?= <15040126243@163.com> Date: Fri, 22 Nov 2024 13:38:31 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=20prometheus=20http?= =?UTF-8?q?=20sd=E5=8F=91=E7=8E=B0=E6=94=AF=E6=8C=81=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E5=AF=86=E7=A0=81=E9=89=B4=E6=9D=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/prometheus/prometheus.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docker/prometheus/prometheus.yml b/docker/prometheus/prometheus.yml index c9ac5e6ff..29701a553 100644 --- a/docker/prometheus/prometheus.yml +++ b/docker/prometheus/prometheus.yml @@ -38,5 +38,13 @@ scrape_configs: scrape_timeout: 10s metrics_path: /actuator/prometheus scheme: http + # monitor 监控的账号密码 + basic_auth: + username: ruoyi + password: 123456 http_sd_configs: - url: 'http://127.0.0.1:9100/actuator/prometheus/sd' + # monitor 监控的账号密码 + basic_auth: + username: ruoyi + password: 123456