apache / rocketmq-exporter

Apache RocketMQ Prometheus Exporter
https://rocketmq.apache.org/
Apache License 2.0
294 stars 171 forks source link

fix the metric collection bug #150

Closed YanYunyang closed 9 months ago

YanYunyang commented 1 year ago

redundant queries can lead to server bandwidth being saturated. The detailed content is as follows, Two broker nodes, one exporter node, one consumer subscribing to 1000 topics, with 20 consumers in total. The traffic on the broker nodes is 75MB/s, while the exporter node handles approximately 150MB/s of continuous traffic.

What is the purpose of the change

fix the metric collection bug, eliminate redundant queries.

Brief changelog

redundant queries can lead to server bandwidth being saturated, avoid duplicate execution of collectClientMetricExecutor.submit().

Verifying this change

XXXX

Follow this checklist to help us incorporate your contribution quickly and easily. Notice, it would be helpful if you could finish the following 5 checklist(the last one is not necessary)before request the community to review your PR.