This is an automated email from the ASF dual-hosted git repository.
github-bot pushed a commit to branch next-asf-site
in repository https://gitbox.apache.org/repos/asf/dubbo-website.git
The following commit(s) were added to refs/heads/next-asf-site by this push:
new 353920c657 deploy: 015ee5efd5b4f88b1094013ce31272fa801b9922
353920c657 is described below
commit 353920c657d132db5327fd4e6cb2dcf1f656eb82
Author: AlbumenJ <[email protected]>
AuthorDate: Tue Feb 7 06:23:21 2023 +0000
deploy: 015ee5efd5b4f88b1094013ce31272fa801b9922
---
sitemap.xml | 2 +-
zh-cn/overview/core-features/index.xml | 30 ++++++++++-
.../core-features/observability/index.html | 63 ++++++++++++----------
zh-cn/sitemap.xml | 2 +-
4 files changed, 67 insertions(+), 30 deletions(-)
diff --git a/sitemap.xml b/sitemap.xml
index 41876ab945..f1690a028b 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -1 +1 @@
-<?xml version="1.0" encoding="utf-8" standalone="yes"?><sitemapindex
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>http://static.dubbo.apache.org:8080/zh-cn/sitemap.xml</loc><lastmod>2023-02-06T17:07:43+08:00</lastmod></sitemap><sitemap><loc>http://static.dubbo.apache.org:8080/en/sitemap.xml</loc><lastmod>2023-01-27T11:37:39+08:00</lastmod></sitemap></sitemapindex>
\ No newline at end of file
+<?xml version="1.0" encoding="utf-8" standalone="yes"?><sitemapindex
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>http://static.dubbo.apache.org:8080/zh-cn/sitemap.xml</loc><lastmod>2023-02-07T14:19:53+08:00</lastmod></sitemap><sitemap><loc>http://static.dubbo.apache.org:8080/en/sitemap.xml</loc><lastmod>2023-01-27T11:37:39+08:00</lastmod></sitemap></sitemapindex>
\ No newline at end of file
diff --git a/zh-cn/overview/core-features/index.xml
b/zh-cn/overview/core-features/index.xml
index 7d59a38ab9..36af65a57c 100644
--- a/zh-cn/overview/core-features/index.xml
+++ b/zh-cn/overview/core-features/index.xml
@@ -616,7 +616,7 @@
<h1 id="指标">指标</h1>
<h2 id="指标模块简介">指标模块简介</h2>
<p>Dubbo的指标模块帮助用户从外部观察正在运行的系统的内部服务状况 ,Dubbo参考 <a
href="https://sre.google/sre-book/monitoring-distributed-systems/">&ldquo;四大黄金信号&rdquo;</a>
并结合实际企业应用场景从不同维度统计了丰富的关键指标,关注这些核心指标对于提供可用性的服务是至关重要的。</p>
-<p>Dubbo的关键指标包含:<strong>延迟(Latency)</strong>、<strong>流量(Traffic)</strong>、**错误(Errors)<strong>和</strong>饱和度(Saturation)**等内容
。同时,为了更好的监测服务运行状态,Dubbo 还提供了对核心组件状态的监控,如线程池数量、服务健康状态等。</p>
+<p>Dubbo的关键指标包含:<strong>延迟(Latency)</strong>、<strong>流量(Traffic)</strong>、
<strong>错误(Errors)</strong> 和 <strong>饱和度(Saturation)</strong> 等内容
。同时,为了更好的监测服务运行状态,Dubbo 还提供了对核心组件状态的监控,如线程池数量、三大中心交互的指标数据等。</p>
<p>Dubbo目前推荐使用Prometheus来进行服务监控,Grafana来展示指标数据。接下来就通过案例来快速入门Dubbo的指标监控吧。</p>
<h2 id="快速入门">快速入门</h2>
<h3 id="环境">环境</h3>
@@ -640,6 +640,34 @@
</ul>
</li>
</ul>
+<h3 id="依赖">依赖</h3>
+<p>目前Dubbo的指标埋点仅支持3.2及以上版本,同时需要引入dubbo-metrics-prometheus依赖如下所示:</p>
+<div class="highlight"><pre tabindex="0"
style="color:#93a1a1;background-color:#002b36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-xml" data-lang="xml"><span
style="display:flex;"><span><span
style="color:#268bd2">&lt;dependency&gt;</span>
+</span></span><span style="display:flex;"><span> <span
style="color:#268bd2">&lt;groupId&gt;</span>org.apache.dubbo<span
style="color:#268bd2">&lt;/groupId&gt;</span>
+</span></span><span style="display:flex;"><span> <span
style="color:#268bd2">&lt;artifactId&gt;</span>dubbo-metrics-prometheus<span
style="color:#268bd2">&lt;/artifactId&gt;</span>
+</span></span><span style="display:flex;"><span> <span
style="color:#268bd2">&lt;version&gt;</span>3.2及以上版本<span
style="color:#268bd2">&lt;/version&gt;</span>
+</span></span><span style="display:flex;"><span><span
style="color:#268bd2">&lt;/dependency&gt;</span>
+</span></span></code></pre></div><h3 id="配置">配置</h3>
+<p>开启Dubbo的指标埋点只需要引入以下配置即可。</p>
+<div class="highlight"><pre tabindex="0"
style="color:#93a1a1;background-color:#002b36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-xml" data-lang="xml"><span
style="display:flex;"><span><span
style="color:#268bd2">&lt;dubbo:metrics</span> protocol=<span
style="color:#2aa198">&#34;prometheus&#34;</span>
enable-jvm-metrics=<span
style="color:#2aa198">&#34;true&#34;</span><span
style="color:#268bd2">&gt;</span>
+</span></span><span style="display:flex;"><span> <span
style="color:#268bd2">&lt;dubbo:aggregation</span> enabled=<span
style="color:#2aa198">&#34;true&#34;</span><span
style="color:#268bd2">/&gt;</span>
+</span></span><span style="display:flex;"><span> <span
style="color:#268bd2">&lt;dubbo:prometheus-exporter</span>
enabled=<span style="color:#2aa198">&#34;true&#34;</span>
metrics-port=<span
style="color:#2aa198">&#34;20888&#34;</span><span
style="color:#268bd2">/&gt;</span>
+</span></span><span style="display:flex;"><span><span
style="color:#268bd2">&lt;/dubbo:metrics&gt;</span>
+</span></span></code></pre></div><p>关于指标的配置可以参考配置项中的指标配置信息,在这里引入的配置中:</p>
+<ul>
+<li>
+<p>enable-jvm-metrics是对JVM指标的埋点, 如果不需要这些配置项可以将其删除或者设置为false,</p>
+</li>
+<li>
+<p>aggregation配置是针对指标数据的聚合处理使监控指标更平滑,</p>
+</li>
+<li>
+<p>prometheus-exporter配置为指标数据导出器,这里配置指标服务的端口号为20888,</p>
+</li>
+<li>
+<p>启动服务后,普罗米修斯监控服务通过访问:<a
href="http://localhost:20888">http://localhost:20888</a> 即可拉取数据</p>
+</li>
+</ul>
<h3 id="可视化页面">可视化页面</h3>
<p>也可以使用 Grafana、Prometheus 等实现可视化指标监测,具体请参考以下可视化任务示例:</p>
<ul>
diff --git a/zh-cn/overview/core-features/observability/index.html
b/zh-cn/overview/core-features/observability/index.html
index a9f97baf52..c78bb04847 100644
--- a/zh-cn/overview/core-features/observability/index.html
+++ b/zh-cn/overview/core-features/observability/index.html
@@ -3,76 +3,85 @@ Metrics。 Dubbo 统计了一系列的流量指标如 QPS、RT、成功请求数
Tracing。 Dubbo 与业界主流的链路追踪工作做了适配,包括 Skywalking、Zipkin、Jaeger 都支持 Dubbo 服务的链路追踪。
Logging。 Dubbo 支持多种日志框架适配。以 Java 体系为例,支持包括 Slf4j、Log4j2、Log4j、Logback、Jcl
等,用户可以基于业务需要选择合适的框架;同时 Dubbo 还支持 Access Log 记录请求踪迹。
指标 指标模块简介 Dubbo的指标模块帮助用户从外部观察正在运行的系统的内部服务状况 ,Dubbo参考 “四大黄金信号”
并结合实际企业应用场景从不同维度统计了丰富的关键指标,关注这些核心指标对于提供可用性的服务是至关重要的。
-Dubbo的关键指标包含:延迟(Latency)、流量(Traffic)、**错误(Errors)和饱和度(Saturation)**等内容
。同时,为了更好的监测服务运行状态,Dubbo 还提供了对核心组件状态的监控,如线程池数量、服务健康状态等。
+Dubbo的关键指标包含:延迟(Latency)、流量(Traffic)、 错误(Errors) 和 饱和度(Saturation) 等内容
。同时,为了更好的监测服务运行状态,Dubbo 还提供了对核心组件状态的监控,如线程池数量、三大中心交互的指标数据等。
Dubbo目前推荐使用Prometheus来进行服务监控,Grafana来展示指标数据。接下来就通过案例来快速入门Dubbo的指标监控吧。
快速入门 环境 系统:Windows、Linux、MacOS JDK 8 及以上 Git Maven 参考案例
Dubbo官方案例中提供了指标埋点的示例,可以访问如下地址获取案例源码:
-Spring项目参考案例:
https://github.com/apache/dubbo-samples/tree/master/4-governance/dubbo-samples-metrics-prometheus
SpringBoot项目参考案例:
https://github.com/apache/dubbo-samples/tree/master/4-governance/dubbo-samples-metrics-spring-boot
可视化页面 也可以使用 Grafana、Prometheus 等实现可视化指标监测,具体请参考以下可视化任务示例:
-Admin 任务链接 Grafana 任务链接 Prometheus 任务链接 Tracing
全链路追踪对于监测分布式系统运行状态具有非常重要的价值,Dubbo 通过 Filter 拦截器实现了请求运行时的埋点跟踪,通过将跟踪数据导出到一些主流实现如
Zipkin、Skywalking、Jaeger 等,可以实现全链路跟踪数据的分析与可视化展示。
-只需要简单的一行配置即可切换链路跟踪的后端实现,并且,你可以随时通过 Dubbo Admin 等治理平台动态调整 Dubbo
的链路追踪采样率,对于问题排查都非常有价值。"><meta property="og:type" content="article"><meta
property="og:url"
content="http://static.dubbo.apache.org:8080/zh-cn/overview/core-features/observability/"><meta
property="article:section" content="overview"><meta
property="article:modified_time" content="2023-02-06T17:07:43+08:00"><meta
property="og:site_name" content="Apache Dubbo"><meta itemprop=name
content="观测服务"><meta itemprop=description conten [...]
+Spring项目参考案例:
https://github.com/apache/dubbo-samples/tree/master/4-governance/dubbo-samples-metrics-prometheus
SpringBoot项目参考案例:
https://github.com/apache/dubbo-samples/tree/master/4-governance/dubbo-samples-metrics-spring-boot
依赖 目前Dubbo的指标埋点仅支持3.2及以上版本,同时需要引入dubbo-metrics-prometheus依赖如下所示:
+<dependency> <groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-metrics-prometheus</artifactId> <version>3.2及以上版本</version>
</dependency> 配置 开启Dubbo的指标埋点只需要引入以下配置即可。
+<dubbo:metrics protocol="prometheus"
enable-jvm-metrics="true"> <dubbo:aggregation enabled="true"/>
<dubbo:prometheus-exporter enabled="true"
metrics-port="20888"/> </dubbo:metrics>
关于指标的配置可以参考配置项中的指标配置信息,在这里引入的配置中:"><meta property="og:type"
content="article"><meta property="og:url"
content="http://static.dubbo.apache.org:8080/zh-cn/overview/core-features/observability/"><meta
property="article:section" content="overview"><meta property="article:mo [...]
Metrics。 Dubbo 统计了一系列的流量指标如 QPS、RT、成功请求数、失败请求数等,还包括一系列的内部组件状态如线程池数、服务健康状态等。
Tracing。 Dubbo 与业界主流的链路追踪工作做了适配,包括 Skywalking、Zipkin、Jaeger 都支持 Dubbo 服务的链路追踪。
Logging。 Dubbo 支持多种日志框架适配。以 Java 体系为例,支持包括 Slf4j、Log4j2、Log4j、Logback、Jcl
等,用户可以基于业务需要选择合适的框架;同时 Dubbo 还支持 Access Log 记录请求踪迹。
指标 指标模块简介 Dubbo的指标模块帮助用户从外部观察正在运行的系统的内部服务状况 ,Dubbo参考 “四大黄金信号”
并结合实际企业应用场景从不同维度统计了丰富的关键指标,关注这些核心指标对于提供可用性的服务是至关重要的。
-Dubbo的关键指标包含:延迟(Latency)、流量(Traffic)、**错误(Errors)和饱和度(Saturation)**等内容
。同时,为了更好的监测服务运行状态,Dubbo 还提供了对核心组件状态的监控,如线程池数量、服务健康状态等。
+Dubbo的关键指标包含:延迟(Latency)、流量(Traffic)、 错误(Errors) 和 饱和度(Saturation) 等内容
。同时,为了更好的监测服务运行状态,Dubbo 还提供了对核心组件状态的监控,如线程池数量、三大中心交互的指标数据等。
Dubbo目前推荐使用Prometheus来进行服务监控,Grafana来展示指标数据。接下来就通过案例来快速入门Dubbo的指标监控吧。
快速入门 环境 系统:Windows、Linux、MacOS JDK 8 及以上 Git Maven 参考案例
Dubbo官方案例中提供了指标埋点的示例,可以访问如下地址获取案例源码:
-Spring项目参考案例:
https://github.com/apache/dubbo-samples/tree/master/4-governance/dubbo-samples-metrics-prometheus
SpringBoot项目参考案例:
https://github.com/apache/dubbo-samples/tree/master/4-governance/dubbo-samples-metrics-spring-boot
可视化页面 也可以使用 Grafana、Prometheus 等实现可视化指标监测,具体请参考以下可视化任务示例:
-Admin 任务链接 Grafana 任务链接 Prometheus 任务链接 Tracing
全链路追踪对于监测分布式系统运行状态具有非常重要的价值,Dubbo 通过 Filter 拦截器实现了请求运行时的埋点跟踪,通过将跟踪数据导出到一些主流实现如
Zipkin、Skywalking、Jaeger 等,可以实现全链路跟踪数据的分析与可视化展示。
-只需要简单的一行配置即可切换链路跟踪的后端实现,并且,你可以随时通过 Dubbo Admin 等治理平台动态调整 Dubbo
的链路追踪采样率,对于问题排查都非常有价值。"><meta itemprop=dateModified
content="2023-02-06T17:07:43+08:00"><meta itemprop=wordCount content="83"><meta
itemprop=keywords content><meta name=twitter:card content="summary"><meta
name=twitter:title content="观测服务"><meta name=twitter:description content="Dubbo
内部维护了多个纬度的可观测指标,并且支持多种方式的可视化监测。可观测性指标从总体上来说分为三个度量纬度:
+Spring项目参考案例:
https://github.com/apache/dubbo-samples/tree/master/4-governance/dubbo-samples-metrics-prometheus
SpringBoot项目参考案例:
https://github.com/apache/dubbo-samples/tree/master/4-governance/dubbo-samples-metrics-spring-boot
依赖 目前Dubbo的指标埋点仅支持3.2及以上版本,同时需要引入dubbo-metrics-prometheus依赖如下所示:
+<dependency> <groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-metrics-prometheus</artifactId> <version>3.2及以上版本</version>
</dependency> 配置 开启Dubbo的指标埋点只需要引入以下配置即可。
+<dubbo:metrics protocol="prometheus"
enable-jvm-metrics="true"> <dubbo:aggregation enabled="true"/>
<dubbo:prometheus-exporter enabled="true"
metrics-port="20888"/> </dubbo:metrics>
关于指标的配置可以参考配置项中的指标配置信息,在这里引入的配置中:"><meta itemprop=dateModified
content="2023-02-07T14:19:53+08:00"><meta itemprop=wordCount
content="112"><meta itemprop=keywords content><meta name=twitter:card
content="summary"><meta name=twitter:title content="观测服务"><meta name=twitter
[...]
Metrics。 Dubbo 统计了一系列的流量指标如 QPS、RT、成功请求数、失败请求数等,还包括一系列的内部组件状态如线程池数、服务健康状态等。
Tracing。 Dubbo 与业界主流的链路追踪工作做了适配,包括 Skywalking、Zipkin、Jaeger 都支持 Dubbo 服务的链路追踪。
Logging。 Dubbo 支持多种日志框架适配。以 Java 体系为例,支持包括 Slf4j、Log4j2、Log4j、Logback、Jcl
等,用户可以基于业务需要选择合适的框架;同时 Dubbo 还支持 Access Log 记录请求踪迹。
指标 指标模块简介 Dubbo的指标模块帮助用户从外部观察正在运行的系统的内部服务状况 ,Dubbo参考 “四大黄金信号”
并结合实际企业应用场景从不同维度统计了丰富的关键指标,关注这些核心指标对于提供可用性的服务是至关重要的。
-Dubbo的关键指标包含:延迟(Latency)、流量(Traffic)、**错误(Errors)和饱和度(Saturation)**等内容
。同时,为了更好的监测服务运行状态,Dubbo 还提供了对核心组件状态的监控,如线程池数量、服务健康状态等。
+Dubbo的关键指标包含:延迟(Latency)、流量(Traffic)、 错误(Errors) 和 饱和度(Saturation) 等内容
。同时,为了更好的监测服务运行状态,Dubbo 还提供了对核心组件状态的监控,如线程池数量、三大中心交互的指标数据等。
Dubbo目前推荐使用Prometheus来进行服务监控,Grafana来展示指标数据。接下来就通过案例来快速入门Dubbo的指标监控吧。
快速入门 环境 系统:Windows、Linux、MacOS JDK 8 及以上 Git Maven 参考案例
Dubbo官方案例中提供了指标埋点的示例,可以访问如下地址获取案例源码:
-Spring项目参考案例:
https://github.com/apache/dubbo-samples/tree/master/4-governance/dubbo-samples-metrics-prometheus
SpringBoot项目参考案例:
https://github.com/apache/dubbo-samples/tree/master/4-governance/dubbo-samples-metrics-spring-boot
可视化页面 也可以使用 Grafana、Prometheus 等实现可视化指标监测,具体请参考以下可视化任务示例:
-Admin 任务链接 Grafana 任务链接 Prometheus 任务链接 Tracing
全链路追踪对于监测分布式系统运行状态具有非常重要的价值,Dubbo 通过 Filter 拦截器实现了请求运行时的埋点跟踪,通过将跟踪数据导出到一些主流实现如
Zipkin、Skywalking、Jaeger 等,可以实现全链路跟踪数据的分析与可视化展示。
-只需要简单的一行配置即可切换链路跟踪的后端实现,并且,你可以随时通过 Dubbo Admin 等治理平台动态调整 Dubbo
的链路追踪采样率,对于问题排查都非常有价值。"><script type=application/javascript>var
doNotTrack=!1;doNotTrack||(window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)},ga.l=+new
Date,ga("create","UA-112489517-1","auto"),ga("send","pageview"))</script><script
async src=https://www.google-analytics.com/analytics.js></script>
+Spring项目参考案例:
https://github.com/apache/dubbo-samples/tree/master/4-governance/dubbo-samples-metrics-prometheus
SpringBoot项目参考案例:
https://github.com/apache/dubbo-samples/tree/master/4-governance/dubbo-samples-metrics-spring-boot
依赖 目前Dubbo的指标埋点仅支持3.2及以上版本,同时需要引入dubbo-metrics-prometheus依赖如下所示:
+<dependency> <groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-metrics-prometheus</artifactId> <version>3.2及以上版本</version>
</dependency> 配置 开启Dubbo的指标埋点只需要引入以下配置即可。
+<dubbo:metrics protocol="prometheus"
enable-jvm-metrics="true"> <dubbo:aggregation enabled="true"/>
<dubbo:prometheus-exporter enabled="true"
metrics-port="20888"/> </dubbo:metrics>
关于指标的配置可以参考配置项中的指标配置信息,在这里引入的配置中:"><script type=application/javascript>var
doNotTrack=!1;doNotTrack||(window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)},ga.l=+new
Date,ga("create","UA-112489517-1","auto"),ga("send","pageview"))</script><script
async src=ht [...]
<link rel=preload
href=/scss/main.min.a361213e6531da2c313738743eb7c3f008c201c3469601e7582c8dd7e91c1dd5.css
as=style><link
href=/scss/main.min.a361213e6531da2c313738743eb7c3f008c201c3469601e7582c8dd7e91c1dd5.css
rel=stylesheet integrity><script src=/js/jquery-3.5.1.min.js
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="
crossorigin=anonymous></script>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/@docsearch/css@3><meta
name=theme-color content="#326ce5"><link rel=stylesheet
href=/css/feature-states.css><meta name=description content="Dubbo
内部维护了多个纬度的可观测指标,并且支持多种方式的可视化监测。可观测性指标从总体上来说分为三个度量纬度:
Metrics。 Dubbo 统计了一系列的流量指标如 QPS、RT、成功请求数、失败请求数等,还包括一系列的内部组件状态如线程池数、服务健康状态等。
Tracing。 Dubbo 与业界主流的链路追踪工作做了适配,包括 Skywalking、Zipkin、Jaeger 都支持 Dubbo 服务的链路追踪。
Logging。 Dubbo 支持多种日志框架适配。以 Java 体系为例,支持包括 Slf4j、Log4j2、Log4j、Logback、Jcl
等,用户可以基于业务需要选择合适的框架;同时 Dubbo 还支持 Access Log 记录请求踪迹。
指标 指标模块简介 Dubbo的指标模块帮助用户从外部观察正在运行的系统的内部服务状况 ,Dubbo参考 “四大黄金信号”
并结合实际企业应用场景从不同维度统计了丰富的关键指标,关注这些核心指标对于提供可用性的服务是至关重要的。
-Dubbo的关键指标包含:延迟(Latency)、流量(Traffic)、**错误(Errors)和饱和度(Saturation)**等内容
。同时,为了更好的监测服务运行状态,Dubbo 还提供了对核心组件状态的监控,如线程池数量、服务健康状态等。
+Dubbo的关键指标包含:延迟(Latency)、流量(Traffic)、 错误(Errors) 和 饱和度(Saturation) 等内容
。同时,为了更好的监测服务运行状态,Dubbo 还提供了对核心组件状态的监控,如线程池数量、三大中心交互的指标数据等。
Dubbo目前推荐使用Prometheus来进行服务监控,Grafana来展示指标数据。接下来就通过案例来快速入门Dubbo的指标监控吧。
快速入门 环境 系统:Windows、Linux、MacOS JDK 8 及以上 Git Maven 参考案例
Dubbo官方案例中提供了指标埋点的示例,可以访问如下地址获取案例源码:
-Spring项目参考案例:
https://github.com/apache/dubbo-samples/tree/master/4-governance/dubbo-samples-metrics-prometheus
SpringBoot项目参考案例:
https://github.com/apache/dubbo-samples/tree/master/4-governance/dubbo-samples-metrics-spring-boot
可视化页面 也可以使用 Grafana、Prometheus 等实现可视化指标监测,具体请参考以下可视化任务示例:
-Admin 任务链接 Grafana 任务链接 Prometheus 任务链接 Tracing
全链路追踪对于监测分布式系统运行状态具有非常重要的价值,Dubbo 通过 Filter 拦截器实现了请求运行时的埋点跟踪,通过将跟踪数据导出到一些主流实现如
Zipkin、Skywalking、Jaeger 等,可以实现全链路跟踪数据的分析与可视化展示。
-只需要简单的一行配置即可切换链路跟踪的后端实现,并且,你可以随时通过 Dubbo Admin 等治理平台动态调整 Dubbo
的链路追踪采样率,对于问题排查都非常有价值。"><meta property="og:description" content="Dubbo
内部维护了多个纬度的可观测指标,并且支持多种方式的可视化监测。可观测性指标从总体上来说分为三个度量纬度:
+Spring项目参考案例:
https://github.com/apache/dubbo-samples/tree/master/4-governance/dubbo-samples-metrics-prometheus
SpringBoot项目参考案例:
https://github.com/apache/dubbo-samples/tree/master/4-governance/dubbo-samples-metrics-spring-boot
依赖 目前Dubbo的指标埋点仅支持3.2及以上版本,同时需要引入dubbo-metrics-prometheus依赖如下所示:
+<dependency> <groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-metrics-prometheus</artifactId> <version>3.2及以上版本</version>
</dependency> 配置 开启Dubbo的指标埋点只需要引入以下配置即可。
+<dubbo:metrics protocol="prometheus"
enable-jvm-metrics="true"> <dubbo:aggregation enabled="true"/>
<dubbo:prometheus-exporter enabled="true"
metrics-port="20888"/> </dubbo:metrics>
关于指标的配置可以参考配置项中的指标配置信息,在这里引入的配置中:"><meta property="og:description"
content="Dubbo 内部维护了多个纬度的可观测指标,并且支持多种方式的可视化监测。可观测性指标从总体上来说分为三个度量纬度:
Metrics。 Dubbo 统计了一系列的流量指标如 QPS、RT、成功请求数、失败请求数等,还包括一系列的内部组件状态如线程池数、服务健康状态等。
Tracing。 Dubbo 与业界主流的链路追踪工作做了适配,包括 Skywalking、Zipkin、Jaeger 都支持 Dubbo 服务的链路追踪。
Logging。 Dubbo 支持多种日志框架适配。以 Java 体系为例,支持包括 Slf4j、Log4j2、Log4j、Logback、Jcl
等,用户可以基于业务需要选择合适的框架;同时 Dubbo 还支持 Access Log 记录请求踪迹。
指标 指标模块简介 Dubbo的指标模块帮助用户从外部观察正在运行的系统的内部服务状况 ,Dubbo参考 “四大黄金信号”
并结合实际企业应用场景从不同维度统计了丰富的关键指标,关注这些核心指标对于提供可用性的服务是至关重要的。
-Dubbo的关键指标包含:延迟(Latency)、流量(Traffic)、**错误(Errors)和饱和度(Saturation)**等内容
。同时,为了更好的监测服务运行状态,Dubbo 还提供了对核心组件状态的监控,如线程池数量、服务健康状态等。
+Dubbo的关键指标包含:延迟(Latency)、流量(Traffic)、 错误(Errors) 和 饱和度(Saturation) 等内容
。同时,为了更好的监测服务运行状态,Dubbo 还提供了对核心组件状态的监控,如线程池数量、三大中心交互的指标数据等。
Dubbo目前推荐使用Prometheus来进行服务监控,Grafana来展示指标数据。接下来就通过案例来快速入门Dubbo的指标监控吧。
快速入门 环境 系统:Windows、Linux、MacOS JDK 8 及以上 Git Maven 参考案例
Dubbo官方案例中提供了指标埋点的示例,可以访问如下地址获取案例源码:
-Spring项目参考案例:
https://github.com/apache/dubbo-samples/tree/master/4-governance/dubbo-samples-metrics-prometheus
SpringBoot项目参考案例:
https://github.com/apache/dubbo-samples/tree/master/4-governance/dubbo-samples-metrics-spring-boot
可视化页面 也可以使用 Grafana、Prometheus 等实现可视化指标监测,具体请参考以下可视化任务示例:
-Admin 任务链接 Grafana 任务链接 Prometheus 任务链接 Tracing
全链路追踪对于监测分布式系统运行状态具有非常重要的价值,Dubbo 通过 Filter 拦截器实现了请求运行时的埋点跟踪,通过将跟踪数据导出到一些主流实现如
Zipkin、Skywalking、Jaeger 等,可以实现全链路跟踪数据的分析与可视化展示。
-只需要简单的一行配置即可切换链路跟踪的后端实现,并且,你可以随时通过 Dubbo Admin 等治理平台动态调整 Dubbo
的链路追踪采样率,对于问题排查都非常有价值。"><meta name=twitter:description content="Dubbo
内部维护了多个纬度的可观测指标,并且支持多种方式的可视化监测。可观测性指标从总体上来说分为三个度量纬度:
+Spring项目参考案例:
https://github.com/apache/dubbo-samples/tree/master/4-governance/dubbo-samples-metrics-prometheus
SpringBoot项目参考案例:
https://github.com/apache/dubbo-samples/tree/master/4-governance/dubbo-samples-metrics-spring-boot
依赖 目前Dubbo的指标埋点仅支持3.2及以上版本,同时需要引入dubbo-metrics-prometheus依赖如下所示:
+<dependency> <groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-metrics-prometheus</artifactId> <version>3.2及以上版本</version>
</dependency> 配置 开启Dubbo的指标埋点只需要引入以下配置即可。
+<dubbo:metrics protocol="prometheus"
enable-jvm-metrics="true"> <dubbo:aggregation enabled="true"/>
<dubbo:prometheus-exporter enabled="true"
metrics-port="20888"/> </dubbo:metrics>
关于指标的配置可以参考配置项中的指标配置信息,在这里引入的配置中:"><meta name=twitter:description
content="Dubbo 内部维护了多个纬度的可观测指标,并且支持多种方式的可视化监测。可观测性指标从总体上来说分为三个度量纬度:
Metrics。 Dubbo 统计了一系列的流量指标如 QPS、RT、成功请求数、失败请求数等,还包括一系列的内部组件状态如线程池数、服务健康状态等。
Tracing。 Dubbo 与业界主流的链路追踪工作做了适配,包括 Skywalking、Zipkin、Jaeger 都支持 Dubbo 服务的链路追踪。
Logging。 Dubbo 支持多种日志框架适配。以 Java 体系为例,支持包括 Slf4j、Log4j2、Log4j、Logback、Jcl
等,用户可以基于业务需要选择合适的框架;同时 Dubbo 还支持 Access Log 记录请求踪迹。
指标 指标模块简介 Dubbo的指标模块帮助用户从外部观察正在运行的系统的内部服务状况 ,Dubbo参考 “四大黄金信号”
并结合实际企业应用场景从不同维度统计了丰富的关键指标,关注这些核心指标对于提供可用性的服务是至关重要的。
-Dubbo的关键指标包含:延迟(Latency)、流量(Traffic)、**错误(Errors)和饱和度(Saturation)**等内容
。同时,为了更好的监测服务运行状态,Dubbo 还提供了对核心组件状态的监控,如线程池数量、服务健康状态等。
+Dubbo的关键指标包含:延迟(Latency)、流量(Traffic)、 错误(Errors) 和 饱和度(Saturation) 等内容
。同时,为了更好的监测服务运行状态,Dubbo 还提供了对核心组件状态的监控,如线程池数量、三大中心交互的指标数据等。
Dubbo目前推荐使用Prometheus来进行服务监控,Grafana来展示指标数据。接下来就通过案例来快速入门Dubbo的指标监控吧。
快速入门 环境 系统:Windows、Linux、MacOS JDK 8 及以上 Git Maven 参考案例
Dubbo官方案例中提供了指标埋点的示例,可以访问如下地址获取案例源码:
-Spring项目参考案例:
https://github.com/apache/dubbo-samples/tree/master/4-governance/dubbo-samples-metrics-prometheus
SpringBoot项目参考案例:
https://github.com/apache/dubbo-samples/tree/master/4-governance/dubbo-samples-metrics-spring-boot
可视化页面 也可以使用 Grafana、Prometheus 等实现可视化指标监测,具体请参考以下可视化任务示例:
-Admin 任务链接 Grafana 任务链接 Prometheus 任务链接 Tracing
全链路追踪对于监测分布式系统运行状态具有非常重要的价值,Dubbo 通过 Filter 拦截器实现了请求运行时的埋点跟踪,通过将跟踪数据导出到一些主流实现如
Zipkin、Skywalking、Jaeger 等,可以实现全链路跟踪数据的分析与可视化展示。
-只需要简单的一行配置即可切换链路跟踪的后端实现,并且,你可以随时通过 Dubbo Admin 等治理平台动态调整 Dubbo
的链路追踪采样率,对于问题排查都非常有价值。"><meta property="og:url"
content="http://static.dubbo.apache.org:8080/zh-cn/overview/core-features/observability/"><meta
property="og:title" content="观测服务"><meta name=twitter:title
content="观测服务"><meta name=twitter:image:alt content="Apache Dubbo"><meta
property="og:image" content="/images/kubernetes-horizontal-color.png"><meta
property="og:type" content="article"><script async defer src=/js/github-butt
[...]
+Spring项目参考案例:
https://github.com/apache/dubbo-samples/tree/master/4-governance/dubbo-samples-metrics-prometheus
SpringBoot项目参考案例:
https://github.com/apache/dubbo-samples/tree/master/4-governance/dubbo-samples-metrics-spring-boot
依赖 目前Dubbo的指标埋点仅支持3.2及以上版本,同时需要引入dubbo-metrics-prometheus依赖如下所示:
+<dependency> <groupId>org.apache.dubbo</groupId>
<artifactId>dubbo-metrics-prometheus</artifactId> <version>3.2及以上版本</version>
</dependency> 配置 开启Dubbo的指标埋点只需要引入以下配置即可。
+<dubbo:metrics protocol="prometheus"
enable-jvm-metrics="true"> <dubbo:aggregation enabled="true"/>
<dubbo:prometheus-exporter enabled="true"
metrics-port="20888"/> </dubbo:metrics>
关于指标的配置可以参考配置项中的指标配置信息,在这里引入的配置中:"><meta property="og:url"
content="http://static.dubbo.apache.org:8080/zh-cn/overview/core-features/observability/"><meta
property="og:title" content="观测服务"><meta name=twitter:title
content="观测服务"><meta name=twitter:image:alt content="Ap [...]
<script src=https://g.alicdn.com/mamba/assets/0.0.7/mse-arc-ui.min.js></script>
-<link rel=stylesheet
href=https://g.alicdn.com/mamba/assets/0.0.7/mse-arc-ui.min.css><link
href=/css/community.css rel=stylesheet><link href=/css/contactus.css
rel=stylesheet><script src=/js/script.js></script><title>观测服务 | Apache
Dubbo</title></head><body class="td-page td-documentation"><header><nav
class="js-navbar-scroll navbar navbar-expand navbar-dark flex-column
flex-md-row td-navbar" data-auto-burger=primary><a class=navbar-brand
href=/zh-cn/><span class=navbar-logo></span><span [...]
+<link rel=stylesheet
href=https://g.alicdn.com/mamba/assets/0.0.7/mse-arc-ui.min.css><link
href=/css/community.css rel=stylesheet><link href=/css/contactus.css
rel=stylesheet><script src=/js/script.js></script><title>观测服务 | Apache
Dubbo</title></head><body class="td-page td-documentation"><header><nav
class="js-navbar-scroll navbar navbar-expand navbar-dark flex-column
flex-md-row td-navbar" data-auto-burger=primary><a class=navbar-brand
href=/zh-cn/><span class=navbar-logo></span><span [...]
+</span></span><span style=display:flex><span> <span
style=color:#268bd2><groupId></span>org.apache.dubbo<span
style=color:#268bd2></groupId></span>
+</span></span><span style=display:flex><span> <span
style=color:#268bd2><artifactId></span>dubbo-metrics-prometheus<span
style=color:#268bd2></artifactId></span>
+</span></span><span style=display:flex><span> <span
style=color:#268bd2><version></span>3.2及以上版本<span
style=color:#268bd2></version></span>
+</span></span><span style=display:flex><span><span
style=color:#268bd2></dependency></span>
+</span></span></code></pre></div><h3
id=配置>配置</h3><p>开启Dubbo的指标埋点只需要引入以下配置即可。</p><div class=highlight><pre
tabindex=0
style=color:#93a1a1;background-color:#002b36;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-xml data-lang=xml><span style=display:flex><span><span
style=color:#268bd2><dubbo:metrics</span> protocol=<span
style=color:#2aa198>"prometheus"</span> enable-jvm-metrics=<span
style=color:#2aa198>"true"</span><span style=color:#268bd2>></span>
+</span></span><span style=display:flex><span> <span
style=color:#268bd2><dubbo:aggregation</span> enabled=<span
style=color:#2aa198>"true"</span><span style=color:#268bd2>/></span>
+</span></span><span style=display:flex><span> <span
style=color:#268bd2><dubbo:prometheus-exporter</span> enabled=<span
style=color:#2aa198>"true"</span> metrics-port=<span
style=color:#2aa198>"20888"</span><span style=color:#268bd2>/></span>
+</span></span><span style=display:flex><span><span
style=color:#268bd2></dubbo:metrics></span>
+</span></span></code></pre></div><p>关于指标的配置可以参考配置项中的指标配置信息,在这里引入的配置中:</p><ul><li><p>enable-jvm-metrics是对JVM指标的埋点,
如果不需要这些配置项可以将其删除或者设置为false,</p></li><li><p>aggregation配置是针对指标数据的聚合处理使监控指标更平滑,</p></li><li><p>prometheus-exporter配置为指标数据导出器,这里配置指标服务的端口号为20888,</p></li><li><p>启动服务后,普罗米修斯监控服务通过访问:<a
href=http://localhost:20888>http://localhost:20888</a> 即可拉取数据</p></li></ul><h3
id=可视化页面>可视化页面</h3><p>也可以使用 Grafana、Prometheus
等实现可视化指标监测,具体请参考以下可视化任务示例:</p><ul><li><a href>Admin 任务链接</a></li><li><a [...]
<button class="btn btn-primary mb-4 feedback--no">否</button><p
class="feedback--response feedback--response__hidden">感谢反馈。如果您有一个关于如何使用
Kubernetes 的特定的、需要答案的问题,可以访问
<a target=_blank rel=noopener
href=https://stackoverflow.com/questions/tagged/kubernetes>Stack Overflow</a>.
在 GitHub 仓库上登记新的问题
<a class=feedback--link target=_blank rel=noopener
href="https://github.com/kubernetes/website/issues/new?title=Issue%20with%20k8s.io">报告问题</a>
或者
-<a class=feedback--link target=_blank rel=noopener
href="https://github.com/kubernetes/website/issues/new?title=Improvement%20for%20k8s.io">提出改进建议</a>.</p></div><script>const
yes=document.querySelector(".feedback--yes"),no=document.querySelector(".feedback--no");document.querySelectorAll(".feedback--link").forEach(e=>{e.href=e.href+window.location.pathname});const
sendFeedback=e=>{gtag||console.log("!gtag"),gtag("event","click",{event_category:"Helpful",event_label:window.location.pathna
[...]
+<a class=feedback--link target=_blank rel=noopener
href="https://github.com/kubernetes/website/issues/new?title=Improvement%20for%20k8s.io">提出改进建议</a>.</p></div><script>const
yes=document.querySelector(".feedback--yes"),no=document.querySelector(".feedback--no");document.querySelectorAll(".feedback--link").forEach(e=>{e.href=e.href+window.location.pathname});const
sendFeedback=e=>{gtag||console.log("!gtag"),gtag("event","click",{event_category:"Helpful",event_label:window.location.pathna
[...]
<a
href=https://github.com/apache/dubbo-website/edit/main/content/zh-cn/overview/core-features/observability.md
class=td-page-meta--edit target=_blank rel=noopener><i class="fa-solid
fa-pen-to-square fa-fw"></i> 编辑此页</a>
<a
href="https://github.com/apache/dubbo-website/new/main/content/zh-cn/overview/core-features/observability.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%2A+Edit+the+%22front+matter%2
[...]
<a
href="https://github.com/apache/dubbo-website/issues/new?title=%e8%a7%82%e6%b5%8b%e6%9c%8d%e5%8a%a1"
class=td-page-meta--issue target=_blank rel=noopener><i class="fa-solid
fa-list-check fa-fw"></i> 登记问题</a>
-<a href=https://github.com/apache/dubbo/issues/new
class=td-page-meta--project-issue target=_blank rel=noopener><i class="fa-solid
fa-list-check fa-fw"></i> 提交项目问题</a></div><nav id=TableOfContents><ul><li><a
href=#指标模块简介>指标模块简介</a></li><li><a href=#快速入门>快速入门</a><ul><li><a
href=#环境>环境</a></li><li><a href=#参考案例>参考案例</a></li><li><a
href=#可视化页面>可视化页面</a></li></ul></li><li><a href=#tracing>Tracing</a></li><li><a
href=#logging>Logging</a></li></ul></nav></div></div></div></div><footer
class="b [...]
+<a href=https://github.com/apache/dubbo/issues/new
class=td-page-meta--project-issue target=_blank rel=noopener><i class="fa-solid
fa-list-check fa-fw"></i> 提交项目问题</a></div><nav id=TableOfContents><ul><li><a
href=#指标模块简介>指标模块简介</a></li><li><a href=#快速入门>快速入门</a><ul><li><a
href=#环境>环境</a></li><li><a href=#参考案例>参考案例</a></li><li><a
href=#依赖>依赖</a></li><li><a href=#配置>配置</a></li><li><a
href=#可视化页面>可视化页面</a></li></ul></li><li><a href=#tracing>Tracing</a></li><li><a
href=#logging>Logging</a></ [...]
<script src=/js/bootstrap.min.js
integrity=sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy
crossorigin=anonymous></script>
<script
src=/js/main.min.a5faf003454d52ae4e2fa290ba90fb3661ea7e329283ae3bf7cf0909f0960468.js
integrity="sha256-pfrwA0VNUq5OL6KQupD7NmHqfjKSg647988JCfCWBGg="
crossorigin=anonymous></script>
<script src=https://cdn.jsdelivr.net/npm/@docsearch/js@3></script>
diff --git a/zh-cn/sitemap.xml b/zh-cn/sitemap.xml
index d026757177..e3ad6d0efd 100644
--- a/zh-cn/sitemap.xml
+++ b/zh-cn/sitemap.xml
@@ -1 +1 @@
-<?xml version="1.0" encoding="utf-8" standalone="yes"?><urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml"><url><loc>http://static.dubbo.apache.org:8080/zh-cn/blog/2023/01/16/%E9%98%BF%E9%87%8C%E5%B7%B4%E5%B7%B4%E5%8D%87%E7%BA%A7-dubbo3-%E5%85%A8%E9%9D%A2%E5%8F%96%E4%BB%A3-hsf2/</loc><lastmod>2023-02-04T11:12:59+08:00</lastmod><changefreq>monthly</changefreq><priority>0.5</priority></url><url><loc>http://static.dubbo.apache.org:8080/zh-c
[...]
\ No newline at end of file
+<?xml version="1.0" encoding="utf-8" standalone="yes"?><urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml"><url><loc>http://static.dubbo.apache.org:8080/zh-cn/blog/2023/01/16/%E9%98%BF%E9%87%8C%E5%B7%B4%E5%B7%B4%E5%8D%87%E7%BA%A7-dubbo3-%E5%85%A8%E9%9D%A2%E5%8F%96%E4%BB%A3-hsf2/</loc><lastmod>2023-02-04T11:12:59+08:00</lastmod><changefreq>monthly</changefreq><priority>0.5</priority></url><url><loc>http://static.dubbo.apache.org:8080/zh-c
[...]
\ No newline at end of file