To view the total number of messages on the Message Queue for Apache Kafka broker or the consumption progress of each partition, you can query the partition status.

Prerequisites

A topic is created. For more information, see Step 1: Create a topic.

Procedure

  1. Log on to the Message Queue for Apache Kafka console.
  2. In the top navigation bar, select a region.
  3. In the left-side navigation pane, click Topics.
  4. On the Topics page, click the instance where the topic is located, find the topic, and click Partition Status in the Actions column.Partition status
    Table 1. Partition status information
    Parameter Description
    Total Messages on Server The total number of messages in all partitions.
    Last Updated At The time when the last message in all partitions is stored.
    Partition ID The ID of the partition corresponding to the topic.
    Minimum Offset The minimum message consumer offset of the topic in the current partition.
    Maximum Offset The maximum message consumer offset of the topic in the current partition.
    Last Updated At The time when the last message in the partition is stored.