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

zpjtge22  于 4个月前  发布在  其他
关注(0)|答案(5)|浏览(46)
  • 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以下的版本可以通过额外提供一个轻量级的监控埋点依赖包的形式直接将关键指标项在兼容包中进行埋点即可。

mfpqipee

mfpqipee2#

i want to try it

cloud you leave your dingding ID?

uyhoqukh

uyhoqukh3#

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

n9vozmp4

n9vozmp44#

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

ruyhziif

ruyhziif5#

这个目前是否有包了

建议升级新版本接入哈

相关问题