Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Observability task: provide compatibility package of index burying points for the lower version of dubbo #11276

Open
2 tasks
songxiaosheng opened this issue Jan 11, 2023 · 6 comments
Assignees
Labels
type/proposal Everything you want Dubbo have

Comments

@songxiaosheng
Copy link
Member

  • I have searched the issues of this repository and believe that this is not a duplicate.
  • I have searched the release notes of this repository and believe that this is not a duplicate.

Describe the feature

En:At present, the version of dubbo3.2 already supports simple monitoring indicator burying points. However, users of dubbo2 and dubbo3.2 and below cannot use the burying point function provided by dubbo. There are more users in the lower version. For the version of dubbo3.2 and below, key indicator items can be directly buried in the compatibility package by providing an additional lightweight monitoring burying point dependency package.

中文:目前dubbo3.2的版本中已经支持简单的监控指标埋点了,但是对于dubbo2和dubbo3.2以下的版本的用户是无法使用dubbo提供的埋点功能的,低版本用户相对更多,针对dubbo3.2以下的版本可以通过额外提供一个轻量级的监控埋点依赖包的形式直接将关键指标项在兼容包中进行埋点即可。

@kaori-seasons
Copy link

i want to try it

@songxiaosheng
Copy link
Member Author

i want to try it

cloud you leave your dingding ID?

@kaori-seasons
Copy link

1
2
3

Prometheus metrics exporter
# HELP dubbo_thread_pool_queue_size_threads 队列大小
# TYPE dubbo_thread_pool_queue_size_threads gauge
dubbo_thread_pool_queue_size_threads{application="service-name",} 0.0

# HELP dubbo_consumer_request Dubbo consumer side request latency in milliseconds.
# TYPE dubbo_consumer_request histogram
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method1",status="success",le="10.0",} 0.0
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method1",status="success",le="25.0",} 0.0
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method1",status="success",le="50.0",} 0.0
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method1",status="success",le="100.0",} 0.0
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method1",status="success",le="250.0",} 1.0
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method1",status="success",le="500.0",} 2.0
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method1",status="success",le="1000.0",} 2.0
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method1",status="success",le="2500.0",} 2.0
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method1",status="success",le="5000.0",} 2.0
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method1",status="success",le="10000.0",} 2.0
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method1",status="success",le="+Inf",} 2.0
dubbo_consumer_request_count{interface="a.b.c.DemoService",method="method1",status="success",} 2.0
dubbo_consumer_request_sum{interface="a.b.c.DemoService",method="method1",status="success",} 517.0
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method2",status="success",le="10.0",} 105670.0
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method2",status="success",le="25.0",} 105905.0
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method2",status="success",le="50.0",} 105977.0
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method2",status="success",le="100.0",} 105996.0
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method2",status="success",le="250.0",} 106057.0
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method2",status="success",le="500.0",} 106057.0
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method2",status="success",le="1000.0",} 106057.0
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method2",status="success",le="2500.0",} 106057.0
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method2",status="success",le="5000.0",} 106057.0
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method2",status="success",le="10000.0",} 106057.0
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method2",status="success",le="+Inf",} 106057.0
dubbo_consumer_request_count{interface="a.b.c.DemoService",method="method2",status="success",} 106057.0
dubbo_consumer_request_sum{interface="a.b.c.DemoService",method="method2",status="success",} 302048.0

# HELP dubbo_thread_pool_active_size_threads 活跃线程数
# TYPE dubbo_thread_pool_active_size_threads gauge
dubbo_thread_pool_active_size_threads{application="service-name",} 0.0

# HELP dubbo_thread_pool_max_size_threads 最大线程数
# TYPE dubbo_thread_pool_max_size_threads gauge
dubbo_thread_pool_max_size_threads{application="service-name",} 2.147483647E9

# HELP dubbo_thread_pool_taskCount_threads 任务总量
# TYPE dubbo_thread_pool_taskCount_threads gauge
dubbo_thread_pool_taskCount_threads{application="service-name",} 3.0
# HELP dubbo_thread_pool_thread_count_threads 当前线程数
# TYPE dubbo_thread_pool_thread_count_threads gauge
dubbo_thread_pool_thread_count_threads{application="service-name",} 0.0
# HELP dubbo_thread_pool_largest_size_threads 历史最高线程数
# TYPE dubbo_thread_pool_largest_size_threads gauge
dubbo_thread_pool_largest_size_threads{application="service-name",} 1.0

# HELP dubbo_thread_pool_completedTaskCount_threads 已完成的任务量
# TYPE dubbo_thread_pool_completedTaskCount_threads gauge
dubbo_thread_pool_completedTaskCount_threads{application="service-name",} 3.0

# HELP dubbo_provider_response Dubbo provider side response latency in milliseconds.
# TYPE dubbo_provider_response histogram
dubbo_provider_response_bucket{interface="com.alibaba.cloud.dubbo.service.DubboMetadataService",method="getExportedURLs",status="success",le="10.0",} 1831.0
dubbo_provider_response_bucket{interface="com.alibaba.cloud.dubbo.service.DubboMetadataService",method="getExportedURLs",status="success",le="25.0",} 1831.0
dubbo_provider_response_bucket{interface="com.alibaba.cloud.dubbo.service.DubboMetadataService",method="getExportedURLs",status="success",le="50.0",} 1831.0
dubbo_provider_response_bucket{interface="com.alibaba.cloud.dubbo.service.DubboMetadataService",method="getExportedURLs",status="success",le="100.0",} 1831.0
dubbo_provider_response_bucket{interface="com.alibaba.cloud.dubbo.service.DubboMetadataService",method="getExportedURLs",status="success",le="250.0",} 1831.0
dubbo_provider_response_bucket{interface="com.alibaba.cloud.dubbo.service.DubboMetadataService",method="getExportedURLs",status="success",le="500.0",} 1831.0
dubbo_provider_response_bucket{interface="com.alibaba.cloud.dubbo.service.DubboMetadataService",method="getExportedURLs",status="success",le="1000.0",} 1831.0
dubbo_provider_response_bucket{interface="com.alibaba.cloud.dubbo.service.DubboMetadataService",method="getExportedURLs",status="success",le="2500.0",} 1831.0
dubbo_provider_response_bucket{interface="com.alibaba.cloud.dubbo.service.DubboMetadataService",method="getExportedURLs",status="success",le="5000.0",} 1831.0
dubbo_provider_response_bucket{interface="com.alibaba.cloud.dubbo.service.DubboMetadataService",method="getExportedURLs",status="success",le="10000.0",} 1831.0
dubbo_provider_response_bucket{interface="com.alibaba.cloud.dubbo.service.DubboMetadataService",method="getExportedURLs",status="success",le="+Inf",} 1831.0
dubbo_provider_response_count{interface="com.alibaba.cloud.dubbo.service.DubboMetadataService",method="getExportedURLs",status="success",} 1831.0
dubbo_provider_response_sum{interface="com.alibaba.cloud.dubbo.service.DubboMetadataService",method="getExportedURLs",status="success",} 397.0
dubbo_provider_response_bucket{interface="a.b.c.DemoService2",method="method3",status="success",le="10.0",} 0.0
dubbo_provider_response_bucket{interface="a.b.c.DemoService2",method="method3",status="success",le="25.0",} 0.0
dubbo_provider_response_bucket{interface="a.b.c.DemoService2",method="method3",status="success",le="50.0",} 0.0
dubbo_provider_response_bucket{interface="a.b.c.DemoService2",method="method3",status="success",le="100.0",} 0.0
dubbo_provider_response_bucket{interface="a.b.c.DemoService2",method="method3",status="success",le="250.0",} 0.0
dubbo_provider_response_bucket{interface="a.b.c.DemoService2",method="method3",status="success",le="500.0",} 0.0
dubbo_provider_response_bucket{interface="a.b.c.DemoService2",method="method3",status="success",le="1000.0",} 0.0
dubbo_provider_response_bucket{interface="a.b.c.DemoService2",method="method3",status="success",le="2500.0",} 5.0
dubbo_provider_response_bucket{interface="a.b.c.DemoService2",method="method3",status="success",le="5000.0",} 5.0
dubbo_provider_response_bucket{interface="a.b.c.DemoService2",method="method3",status="success",le="10000.0",} 5.0
dubbo_provider_response_bucket{interface="a.b.c.DemoService2",method="method3",status="success",le="+Inf",} 5.0
dubbo_provider_response_count{interface="a.b.c.DemoService2",method="method3",status="success",} 5.0
dubbo_provider_response_sum{interface="a.b.c.DemoService2",method="method3",status="success",} 6043.0
Grafana指标查询
QPS
# legend:service provider
sum(rate(dubbo_provider_response_count{application="$application", instance="$instance"}[1m]))
# legend:service consumer
sum(rate(dubbo_consumer_request_count{application="$application", instance="$instance"}[1m]))
请求耗时
# legend:服务提供者
sum(rate(dubbo_provider_response_sum{application="$application", instance="$instance", status!~"5.."}[1m]))/sum(rate(dubbo_provider_response_count{application="$application", instance="$instance", status="success"}[1m]))
# legend:服务消费者
sum(rate(dubbo_consumer_request_sum{application="$application", instance="$instance", status!~"5.."}[1m]))/sum(rate(dubbo_consumer_request_count{application="$application", instance="$instance", status="success"}[1m]))
错误数
sum(rate(dubbo_consumer_request_count{application="$application", instance="$instance", status!~"success"}[1m]))
线程池
# legend:taskCount
dubbo_thread_pool_taskCount_threads{application="$application", instance=~"$instance"}
# legend:coreSize
dubbo_thread_pool_core_size_threads{application="$application", instance=~"$instance"}
# legend:activeSize
dubbo_thread_pool_active_size_threads{application="$application", instance=~"$instance"}
# legend:completedTaskCount
dubbo_thread_pool_completedTaskCount_threads{application="$application", instance=~"$instance"}
# legend:threadCount
dubbo_thread_pool_thread_count_threads{application="$application", instance=~"$instance"}
# legend:largestSize
dubbo_thread_pool_largest_size_threads{application="$application", instance=~"$instance"}
服务提供者接口被调用——平均响应耗时
# legend: {{interface}}#{{method}}
rate(dubbo_provider_response_sum{application="$application", instance=~"$instance"}[1m])/rate(dubbo_provider_response_count{application="$application", instance=~"$instance"}[1m])
服务消费者接口调用——平均响应耗时
# legend: {{interface}}#{{method}}
rate(dubbo_consumer_request_sum{application="$application",instance=~"$instance"}[1m])/rate(dubbo_consumer_request_count{application="$application", instance=~"$instance"}[1m])
Top 10 接口被调用次数 (提供者)
# legend: {{interface}}#{{method}}
topk(10, sum by(interface, method) (rate(dubbo_provider_response_count{application="$application"}[1m])))
Top 10 接口访问次数(消费者)
# legend: {{interface}}#{{method}}
topk(10, sum by(interface, method) (rate(dubbo_consumer_request_count{application="$application"}[1m])))
服务提供者——耗时直方图
# 95%
histogram_quantile(0.95, sum(rate(dubbo_provider_response_bucket{application="$application", instance=~"$instance"}[1m])) by (le))
# 90%
histogram_quantile(0.90, sum(rate(dubbo_provider_response_bucket{application="$application", instance=~"$instance"}[1m])) by (le))
# 75%
histogram_quantile(0.75, sum(rate(dubbo_provider_response_bucket{application="$application", instance=~"$instance"}[1m])) by (le))
# 50%
histogram_quantile(0.50, sum(rate(dubbo_provider_response_bucket{application="$application", instance=~"$instance"}[1m])) by (le))
服务消费者——耗时直方图
# 95%
histogram_quantile(0.95, sum(rate(dubbo_consumer_request_bucket{application="$application", instance=~"$instance"}[1m])) by (le))
# 90%
histogram_quantile(0.90, sum(rate(dubbo_consumer_request_bucket{application="$application", instance=~"$instance"}[1m])) by (le))
# 75%
histogram_quantile(0.75, sum(rate(dubbo_consumer_request_bucket{application="$application", instance=~"$instance"}[1m])) by (le))
# 50%
histogram_quantile(0.50, sum(rate(dubbo_consumer_request_bucket{application="$app

@songxiaosheng Is it possible to do this only for now? There are still some imperfections in the code that need to be improved, so I will mention the code later

@songxiaosheng
Copy link
Member Author

1
2
3

Prometheus metrics exporter
# HELP dubbo_thread_pool_queue_size_threads 队列大小
# TYPE dubbo_thread_pool_queue_size_threads gauge
dubbo_thread_pool_queue_size_threads{application="service-name",} 0.0

# HELP dubbo_consumer_request Dubbo consumer side request latency in milliseconds.
# TYPE dubbo_consumer_request histogram
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method1",status="success",le="10.0",} 0.0
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method1",status="success",le="25.0",} 0.0
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method1",status="success",le="50.0",} 0.0
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method1",status="success",le="100.0",} 0.0
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method1",status="success",le="250.0",} 1.0
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method1",status="success",le="500.0",} 2.0
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method1",status="success",le="1000.0",} 2.0
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method1",status="success",le="2500.0",} 2.0
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method1",status="success",le="5000.0",} 2.0
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method1",status="success",le="10000.0",} 2.0
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method1",status="success",le="+Inf",} 2.0
dubbo_consumer_request_count{interface="a.b.c.DemoService",method="method1",status="success",} 2.0
dubbo_consumer_request_sum{interface="a.b.c.DemoService",method="method1",status="success",} 517.0
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method2",status="success",le="10.0",} 105670.0
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method2",status="success",le="25.0",} 105905.0
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method2",status="success",le="50.0",} 105977.0
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method2",status="success",le="100.0",} 105996.0
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method2",status="success",le="250.0",} 106057.0
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method2",status="success",le="500.0",} 106057.0
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method2",status="success",le="1000.0",} 106057.0
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method2",status="success",le="2500.0",} 106057.0
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method2",status="success",le="5000.0",} 106057.0
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method2",status="success",le="10000.0",} 106057.0
dubbo_consumer_request_bucket{interface="a.b.c.DemoService",method="method2",status="success",le="+Inf",} 106057.0
dubbo_consumer_request_count{interface="a.b.c.DemoService",method="method2",status="success",} 106057.0
dubbo_consumer_request_sum{interface="a.b.c.DemoService",method="method2",status="success",} 302048.0

# HELP dubbo_thread_pool_active_size_threads 活跃线程数
# TYPE dubbo_thread_pool_active_size_threads gauge
dubbo_thread_pool_active_size_threads{application="service-name",} 0.0

# HELP dubbo_thread_pool_max_size_threads 最大线程数
# TYPE dubbo_thread_pool_max_size_threads gauge
dubbo_thread_pool_max_size_threads{application="service-name",} 2.147483647E9

# HELP dubbo_thread_pool_taskCount_threads 任务总量
# TYPE dubbo_thread_pool_taskCount_threads gauge
dubbo_thread_pool_taskCount_threads{application="service-name",} 3.0
# HELP dubbo_thread_pool_thread_count_threads 当前线程数
# TYPE dubbo_thread_pool_thread_count_threads gauge
dubbo_thread_pool_thread_count_threads{application="service-name",} 0.0
# HELP dubbo_thread_pool_largest_size_threads 历史最高线程数
# TYPE dubbo_thread_pool_largest_size_threads gauge
dubbo_thread_pool_largest_size_threads{application="service-name",} 1.0

# HELP dubbo_thread_pool_completedTaskCount_threads 已完成的任务量
# TYPE dubbo_thread_pool_completedTaskCount_threads gauge
dubbo_thread_pool_completedTaskCount_threads{application="service-name",} 3.0

# HELP dubbo_provider_response Dubbo provider side response latency in milliseconds.
# TYPE dubbo_provider_response histogram
dubbo_provider_response_bucket{interface="com.alibaba.cloud.dubbo.service.DubboMetadataService",method="getExportedURLs",status="success",le="10.0",} 1831.0
dubbo_provider_response_bucket{interface="com.alibaba.cloud.dubbo.service.DubboMetadataService",method="getExportedURLs",status="success",le="25.0",} 1831.0
dubbo_provider_response_bucket{interface="com.alibaba.cloud.dubbo.service.DubboMetadataService",method="getExportedURLs",status="success",le="50.0",} 1831.0
dubbo_provider_response_bucket{interface="com.alibaba.cloud.dubbo.service.DubboMetadataService",method="getExportedURLs",status="success",le="100.0",} 1831.0
dubbo_provider_response_bucket{interface="com.alibaba.cloud.dubbo.service.DubboMetadataService",method="getExportedURLs",status="success",le="250.0",} 1831.0
dubbo_provider_response_bucket{interface="com.alibaba.cloud.dubbo.service.DubboMetadataService",method="getExportedURLs",status="success",le="500.0",} 1831.0
dubbo_provider_response_bucket{interface="com.alibaba.cloud.dubbo.service.DubboMetadataService",method="getExportedURLs",status="success",le="1000.0",} 1831.0
dubbo_provider_response_bucket{interface="com.alibaba.cloud.dubbo.service.DubboMetadataService",method="getExportedURLs",status="success",le="2500.0",} 1831.0
dubbo_provider_response_bucket{interface="com.alibaba.cloud.dubbo.service.DubboMetadataService",method="getExportedURLs",status="success",le="5000.0",} 1831.0
dubbo_provider_response_bucket{interface="com.alibaba.cloud.dubbo.service.DubboMetadataService",method="getExportedURLs",status="success",le="10000.0",} 1831.0
dubbo_provider_response_bucket{interface="com.alibaba.cloud.dubbo.service.DubboMetadataService",method="getExportedURLs",status="success",le="+Inf",} 1831.0
dubbo_provider_response_count{interface="com.alibaba.cloud.dubbo.service.DubboMetadataService",method="getExportedURLs",status="success",} 1831.0
dubbo_provider_response_sum{interface="com.alibaba.cloud.dubbo.service.DubboMetadataService",method="getExportedURLs",status="success",} 397.0
dubbo_provider_response_bucket{interface="a.b.c.DemoService2",method="method3",status="success",le="10.0",} 0.0
dubbo_provider_response_bucket{interface="a.b.c.DemoService2",method="method3",status="success",le="25.0",} 0.0
dubbo_provider_response_bucket{interface="a.b.c.DemoService2",method="method3",status="success",le="50.0",} 0.0
dubbo_provider_response_bucket{interface="a.b.c.DemoService2",method="method3",status="success",le="100.0",} 0.0
dubbo_provider_response_bucket{interface="a.b.c.DemoService2",method="method3",status="success",le="250.0",} 0.0
dubbo_provider_response_bucket{interface="a.b.c.DemoService2",method="method3",status="success",le="500.0",} 0.0
dubbo_provider_response_bucket{interface="a.b.c.DemoService2",method="method3",status="success",le="1000.0",} 0.0
dubbo_provider_response_bucket{interface="a.b.c.DemoService2",method="method3",status="success",le="2500.0",} 5.0
dubbo_provider_response_bucket{interface="a.b.c.DemoService2",method="method3",status="success",le="5000.0",} 5.0
dubbo_provider_response_bucket{interface="a.b.c.DemoService2",method="method3",status="success",le="10000.0",} 5.0
dubbo_provider_response_bucket{interface="a.b.c.DemoService2",method="method3",status="success",le="+Inf",} 5.0
dubbo_provider_response_count{interface="a.b.c.DemoService2",method="method3",status="success",} 5.0
dubbo_provider_response_sum{interface="a.b.c.DemoService2",method="method3",status="success",} 6043.0
Grafana指标查询
QPS
# legend:service provider
sum(rate(dubbo_provider_response_count{application="$application", instance="$instance"}[1m]))
# legend:service consumer
sum(rate(dubbo_consumer_request_count{application="$application", instance="$instance"}[1m]))
请求耗时
# legend:服务提供者
sum(rate(dubbo_provider_response_sum{application="$application", instance="$instance", status!~"5.."}[1m]))/sum(rate(dubbo_provider_response_count{application="$application", instance="$instance", status="success"}[1m]))
# legend:服务消费者
sum(rate(dubbo_consumer_request_sum{application="$application", instance="$instance", status!~"5.."}[1m]))/sum(rate(dubbo_consumer_request_count{application="$application", instance="$instance", status="success"}[1m]))
错误数
sum(rate(dubbo_consumer_request_count{application="$application", instance="$instance", status!~"success"}[1m]))
线程池
# legend:taskCount
dubbo_thread_pool_taskCount_threads{application="$application", instance=~"$instance"}
# legend:coreSize
dubbo_thread_pool_core_size_threads{application="$application", instance=~"$instance"}
# legend:activeSize
dubbo_thread_pool_active_size_threads{application="$application", instance=~"$instance"}
# legend:completedTaskCount
dubbo_thread_pool_completedTaskCount_threads{application="$application", instance=~"$instance"}
# legend:threadCount
dubbo_thread_pool_thread_count_threads{application="$application", instance=~"$instance"}
# legend:largestSize
dubbo_thread_pool_largest_size_threads{application="$application", instance=~"$instance"}
服务提供者接口被调用——平均响应耗时
# legend: {{interface}}#{{method}}
rate(dubbo_provider_response_sum{application="$application", instance=~"$instance"}[1m])/rate(dubbo_provider_response_count{application="$application", instance=~"$instance"}[1m])
服务消费者接口调用——平均响应耗时
# legend: {{interface}}#{{method}}
rate(dubbo_consumer_request_sum{application="$application",instance=~"$instance"}[1m])/rate(dubbo_consumer_request_count{application="$application", instance=~"$instance"}[1m])
Top 10 接口被调用次数 (提供者)
# legend: {{interface}}#{{method}}
topk(10, sum by(interface, method) (rate(dubbo_provider_response_count{application="$application"}[1m])))
Top 10 接口访问次数(消费者)
# legend: {{interface}}#{{method}}
topk(10, sum by(interface, method) (rate(dubbo_consumer_request_count{application="$application"}[1m])))
服务提供者——耗时直方图
# 95%
histogram_quantile(0.95, sum(rate(dubbo_provider_response_bucket{application="$application", instance=~"$instance"}[1m])) by (le))
# 90%
histogram_quantile(0.90, sum(rate(dubbo_provider_response_bucket{application="$application", instance=~"$instance"}[1m])) by (le))
# 75%
histogram_quantile(0.75, sum(rate(dubbo_provider_response_bucket{application="$application", instance=~"$instance"}[1m])) by (le))
# 50%
histogram_quantile(0.50, sum(rate(dubbo_provider_response_bucket{application="$application", instance=~"$instance"}[1m])) by (le))
服务消费者——耗时直方图
# 95%
histogram_quantile(0.95, sum(rate(dubbo_consumer_request_bucket{application="$application", instance=~"$instance"}[1m])) by (le))
# 90%
histogram_quantile(0.90, sum(rate(dubbo_consumer_request_bucket{application="$application", instance=~"$instance"}[1m])) by (le))
# 75%
histogram_quantile(0.75, sum(rate(dubbo_consumer_request_bucket{application="$application", instance=~"$instance"}[1m])) by (le))
# 50%
histogram_quantile(0.50, sum(rate(dubbo_consumer_request_bucket{application="$app

@songxiaosheng Is it possible to do this only for now? There are still some imperfections in the code that need to be improved, so I will mention the code later

yes some feature still improved

@songxiaosheng
Copy link
Member Author

这个目前是否有包了

建议升级新版本接入哈

@AlbumenJ AlbumenJ added type/proposal Everything you want Dubbo have and removed type/feature labels Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/proposal Everything you want Dubbo have
Projects
None yet
Development

No branches or pull requests

4 participants
@AlbumenJ @kaori-seasons @songxiaosheng and others