This is an automated email from the ASF dual-hosted git repository.
albumenj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-samples.git
The following commit(s) were added to refs/heads/master by this push:
new db0f3cac7 change metrics sample properties to yaml (#1207)
db0f3cac7 is described below
commit db0f3cac7d2165a3da815984d524d11efc3d0782
Author: xiaosheng <[email protected]>
AuthorDate: Mon Feb 24 09:55:22 2025 +0800
change metrics sample properties to yaml (#1207)
---
.../src/main/resources/application.properties | 13 --------
.../src/main/resources/application.yaml | 35 ++++++++++++++++++++++
2 files changed, 35 insertions(+), 13 deletions(-)
diff --git
a/4-governance/dubbo-samples-metrics-spring-boot/src/main/resources/application.properties
b/4-governance/dubbo-samples-metrics-spring-boot/src/main/resources/application.properties
deleted file mode 100644
index c500a3193..000000000
---
a/4-governance/dubbo-samples-metrics-spring-boot/src/main/resources/application.properties
+++ /dev/null
@@ -1,13 +0,0 @@
-management.metrics.tags.application=dubbo-samples-metrics-spring-boot
-management.server.port=18081
-management.endpoints.web.base-path=/management
-management.endpoints.web.exposure.include=info,health,env,prometheus
-spring.main.allow-circular-references=true
-management.endpoint.metrics.enabled=true
-management.endpoint.prometheus.enabled=true
-management.metrics.export.prometheus.enabled=true
-server.port=18080
-dubbo.application.name=metrics-provider
-dubbo.registry.address=zookeeper://${ZOOKEEPER_ADDRESS:127.0.0.1}:2181
-dubbo.metrics.protocol=prometheus
-#dubbo.metrics.enable-jvm-metrics=true
diff --git
a/4-governance/dubbo-samples-metrics-spring-boot/src/main/resources/application.yaml
b/4-governance/dubbo-samples-metrics-spring-boot/src/main/resources/application.yaml
new file mode 100644
index 000000000..a134bf206
--- /dev/null
+++
b/4-governance/dubbo-samples-metrics-spring-boot/src/main/resources/application.yaml
@@ -0,0 +1,35 @@
+management:
+ metrics:
+ tags:
+ application: dubbo-samples-metrics-spring-boot
+ export:
+ prometheus:
+ enabled: true
+ server:
+ port: 18081
+ endpoints:
+ web:
+ base-path: /management
+ exposure:
+ include: info,health,env,prometheus
+ endpoint:
+ metrics:
+ enabled: true
+ prometheus:
+ enabled: true
+
+spring:
+ main:
+ allow-circular-references: true
+
+server:
+ port: 18080
+
+dubbo:
+ application:
+ name: metrics-provider
+ registry:
+ address: zookeeper://${ZOOKEEPER_ADDRESS:127.0.0.1}:2181
+ metrics:
+ protocol: prometheus
+ # enable-jvm-metrics: true
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]