You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by al...@apache.org on 2023/04/20 08:31:18 UTC
[dubbo-samples] branch master updated: 📝 upgrade metrics doc (#827)
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 f5d08f7f 📝 upgrade metrics doc (#827)
f5d08f7f is described below
commit f5d08f7f3dbc04aefa9c4848d41f8caebc9dfab9
Author: songxiaosheng <so...@elastic.link>
AuthorDate: Thu Apr 20 16:31:10 2023 +0800
📝 upgrade metrics doc (#827)
* :memo: upgrade metrics doc
* :memo: upgrade metrics doc
---
.../dubbo-samples-metrics-prometheus/README.md | 18 +++++-------------
1 file changed, 5 insertions(+), 13 deletions(-)
diff --git a/4-governance/dubbo-samples-metrics-prometheus/README.md b/4-governance/dubbo-samples-metrics-prometheus/README.md
index b0ee6e79..75a79a5f 100644
--- a/4-governance/dubbo-samples-metrics-prometheus/README.md
+++ b/4-governance/dubbo-samples-metrics-prometheus/README.md
@@ -1,16 +1,11 @@
# 使用Metrics模块进行数据采集然后暴漏数据给普罗米修斯监控
Dubbo使用开源的[Dubbo Metrics](https://github.com/alibaba/metrics)进行数据埋点,并且通过服务暴露,使用的时候,首先需要进行配置:
-* 依赖(其中Dubbo版本在3.2.0-beta及以后)
+* 依赖(其中Dubbo版本在3.2.0及以后)
```xml
<dependency>
- <groupId>org.apache.dubbo</groupId>
- <artifactId>dubbo-spring-boot-actuator</artifactId>
-</dependency>
-
-<dependency>
- <groupId>org.apache.dubbo</groupId>
- <artifactId>dubbo-metrics-prometheus</artifactId>
+ <groupId>org.apache.dubbo</groupId>
+ <artifactId>dubbo-spring-boot-observability-starter</artifactId>
</dependency>
```
@@ -18,7 +13,6 @@ Dubbo使用开源的[Dubbo Metrics](https://github.com/alibaba/metrics)进行数
```xml
<dubbo:metrics protocol="prometheus">
<dubbo:aggregation enabled="true"/>
- <dubbo:prometheus-exporter enabled="true"/>
</dubbo:metrics>
```
@@ -27,7 +21,6 @@ Dubbo使用开源的[Dubbo Metrics](https://github.com/alibaba/metrics)进行数
```xml
<dubbo:metrics protocol="prometheus">
<dubbo:aggregation enabled="true"/>
- <dubbo:prometheus-exporter enabled="true" metrics-port="20889"/>
</dubbo:metrics>
```
@@ -35,7 +28,6 @@ Dubbo使用开源的[Dubbo Metrics](https://github.com/alibaba/metrics)进行数
提供端监控指标:http://localhost:20888/metrics
消费端监控指标:http://localhost:20889/metrics
-其中,`<dubbo:metrics />`的配置指定了metrics暴露的协议和端口,这些信息会被放在元数据里面,而`<dubbo:provider />`和`<dubbo: consumer />`则在服务端和客户端分别激活了metrics的filter,如果你的服务分别含有服务端和客户端,选择在一端激活就可以。
-
+
可观测性文档如下链接:
- [https://cn.dubbo.apache.org/zh/docs3-v2/java-sdk/advanced-features-and-usage/observability/](https://cn.dubbo.apache.org/zh/docs3-v2/java-sdk/advanced-features-and-usage/observability/)
\ No newline at end of file
+ [https://cn.dubbo.apache.org/zh-cn/overview/tasks/observability/metrics-start/](https://cn.dubbo.apache.org/zh-cn/overview/tasks/observability/metrics-start/)
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org