Parcourir la source

[Feature][Metrics] Enable prometheus to collect metrics in standalone mode demo (#10398)

Eric Gao il y a 2 ans
Parent
commit
e6d39910fb

+ 6 - 1
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