From e6d39910fb64d8377a75129d940bb9e6e5efc4d1 Mon Sep 17 00:00:00 2001 From: Eric Gao Date: Fri, 10 Jun 2022 13:08:27 +0800 Subject: [PATCH] [Feature][Metrics] Enable prometheus to collect metrics in standalone mode demo (#10398) --- .../src/main/resources/grafana-demo/prometheus.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dolphinscheduler-meter/src/main/resources/grafana-demo/prometheus.yml b/dolphinscheduler-meter/src/main/resources/grafana-demo/prometheus.yml index 751c2da2f6..715cdb657f 100644 --- a/dolphinscheduler-meter/src/main/resources/grafana-demo/prometheus.yml +++ b/dolphinscheduler-meter/src/main/resources/grafana-demo/prometheus.yml @@ -28,4 +28,9 @@ scrape_configs: - 'host.docker.internal:5679' # Change the address to the address of DolphinScheduler master server - 'host.docker.internal:1235' # Change the address to the address of DolphinScheduler worker server - 'host.docker.internal:50053' # Change the address to the address of DolphinScheduler alert server - - 'host.docker.internal:8080' # Change the address to the DolphinScheduler standalone server + - job_name: 'DolphinScheduler-Standalone' + metrics_path: '/dolphinscheduler/actuator/prometheus' + scrape_interval: 5s + static_configs: + - targets: + - 'host.docker.internal:12345' # Change the address to the DolphinScheduler standalone server