apache / apache/rocketmq-exporter

rocketmq_producer_message_size has bug

Open
#63 1 comment 0 reactions 1 assignee Claimed by @Cczzzz View on GitHub
bug
Dominant language
Java
Stars
324
Forks
178
PR merge metrics
No merged PRs in 30d

Description

` try {
//how many bytes has sent for the topic
bsd = mqAdminExt.viewBrokerStatsData(masterAddr, BrokerStatsManager.TOPIC_PUT_SIZE, topic);
String brokerIP = clusterInfo.getBrokerAddrTable().get(bd.getBrokerName()).getBrokerAddrs().get(MixAll.MASTER_ID);
metricsService.getCollector().addTopicPutSizeMetric(
bd.getCluster(),
bd.getBrokerName(),
brokerIP,
topic,
Utils.getFixedDouble(bsd.getStatsMinute().getTps())
);`

in MetricsCollectTask 434 line,TopicPutSize use getTps

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.