Skip to content

[Feature🚀] Implement BrokerConsumeStats command in rocketmq-admin-core #6278

@mxsm

Description

@mxsm

Feature Description

Add support for BrokerConsumeStats command to query broker consumption statistics in the rocketmq-admin-core crate.

Problem/Motivation

Currently, rocketmq-rust lacks the broker consumption statistics command that exists in Java RocketMQ tools. This command is essential for monitoring and troubleshooting consumption performance issues by showing detailed statistics about message consumption on the broker side.

Proposed Solution

Implement the BrokerConsumeStats command in rocketmq-admin-core under a new broker_commands module, mirroring the functionality of Java's BrokerConsumeStatsSubCommand.

Key features to implement:

  • Query consumption statistics from broker
  • Display consumer group consumption details
  • Show message accumulation information
  • Support filtering by consumer group

The implementation should be placed in:

  • rocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/broker_commands/

Alternatives

Could integrate this into existing consumer commands, but separating broker-specific commands provides better organization and aligns with Java implementation structure.

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions