GenerousMan opened a new pull request, #7500: URL: https://github.com/apache/rocketmq/pull/7500
<!-- Please make sure the target branch is right. In most case, the target branch should be `develop`. --> ### Which Issue(s) This PR Fixes <!-- Please ensure that the related issue has already been created, and [link this pull request to that issue using keywords](<https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword>) to ensure automatic closure. --> Some enhanced metrics of RIP-46, link to #5350 ### Brief Description The following metrics related to timing messages have been added: 1. `rocketmq_timer_message_snapshot`, GAUGE, records the distribution of messages in the current timer wheel, without distinguishing by topic. 2. `rocketmq_timing_end_messages_total`, COUNTER, records the number of timing messages that have ended, aggregated by topic. 3. `rocketmq_delay_message_latency`, HISTOGRAM, records the distribution of timing message delay durations when sent, aggregated by topic. The following metrics related to transactional messages have been added: 1. `rocketmq_half_messages`, GAUGE, records the number of half messages in transactional scenarios, aggregated by topic. 2. `rocketmq_commit_messages_total`, COUNTER, records the number of messages committed in transactions, aggregated by topic. 3. `rocketmq_rollback_messages_total`, COUNTER, records the number of messages rolled back in transactions, aggregated by topic. 4. `rocketmq_transaction_finish_latency`, HISTOGRAM, records the distribution of delay times for committing transactional half messages, aggregated by topic. In addition, to calculate metrics related to transactional messages, a new data structure called TransactionMetrics has been added to record the number of transactional half messages under each topic. ### How Did You Test This Change? <!-- In order to ensure the code quality of Apache RocketMQ, we expect every pull request to have undergone thorough testing. --> I will provide a test report later. -- 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: commits-unsubscr...@rocketmq.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org