panzhi33 commented on issue #3222:
URL: https://github.com/apache/rocketmq/issues/3222#issuecomment-893973397


   > > 对的。不过你需要当天所有topic发送的消息总条数的话,可以通过brokerStatus命令看下,这里面有这个数据的
   > 
   > `BROKER_PUT_NUM`是`rocketmq` 中`stats.log` 
日志文件里面的获取的,在stats.log日志中统计昨天的所有输出样式为`2021-07-29 15:11:27 INFO - 
[BROKER_PUT_NUMS] [RaftCluster] Stats In One Minute, SUM: 4 TPS: 0.07 AVGPT: 
0.00`的日志,获取其中每条中`sum`值进行相加,得到的结果为`76137`这个数值,现在这个统计出来的数量是错误的,那这样的话,我如何从stats.log日志中获取昨天broker接收的消息总条数呢?
   
   
你这样算的是总数呀,到目前为止发送了多少条。昨天的数据就是控制台的算法,从brokerStatus里面,得到两个值,然后相减msgPutTotalTodayMorning-msgPutTotalYesterdayMorning


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to