The statistics function allows you to collect the statistics about message production and consumption. It allows you to view not only the total number of messages that a topic received or the message receiving transactions per second (TPS) of the topic during a certain period of time, but also the total number of messages that a topic sent to a group ID or its message sending TPS to that group ID during a certain period of time.

View message production data

  1. Log on to the Message Queue for Apache RocketMQ console. In the top navigation bar, select the region, such as China (Hangzhou).
  2. On the Instances page, find the target instance and click Details in the Actions column.
  3. In the left-side navigation pane, choose Resource Reports > Message Production.
  4. In the Topic drop-down list, select the topic you want to view and set the following parameters as needed:
    • Collection Type: can be Total Quantity or TPS. Total Quantity indicates the total number of messages that the topic received from the broker within a collection cycle, and TPS indicates the average message receiving TPS of the topic.
    • Collection Interval: can be Every 1 Minute, Every 10 Minutes, Every 30 Minutes, or Every 1 Hour. The collection cycle is the data collection interval. Therefore, the shorter the cycle, the more frequent the collection is, and the more detailed the message production statistics are.
    • Time Range:: Message Queue for Apache RocketMQ allows you to query messages produced within the last three days.

    Query results are displayed in a chart.

    statistics_produce

View message consumption data

  1. Log on to the Message Queue for Apache RocketMQ console. In the top navigation bar, select the region, such as China (Hangzhou).
  2. On the Instances page, find the target instance and click Details in the Actions column.
  3. In the left-side navigation pane, choose Resource Reports > Message Consumption.
  4. Select the target group ID from the Group ID drop-down list and the target topic from the Topic drop-down list, and set the following parameters as needed:
    • Collection Type: can be Total Quantity or TPS. Total Quantity indicates the total number of messages that the topic delivers to the group ID in each collection cycle, and TPS indicates the average message receiving TPS of the group ID.
    • Collection Interval: can be Every 1 Minute, Every 10 Minutes, Every 30 Minutes, or Every 1 Hour. The collection cycle is the data collection interval. Therefore, the shorter the cycle is, the more frequent the collection is, and the more detailed the message consumption statistics are.
    • Time Range:: Message Queue for Apache RocketMQ allows you to query messages consumed within the last three days.

    Query results are displayed in a chart.

    statistics_consume