Updated on 2025-09-03 GMT+08:00

How Do I View the Number of Accumulated Messages?

View the number of accumulated messages using any of the following methods:

  • On the Instance > Consumer Groups page of an instance, click the name of the consumer group whose accumulated messages are to be viewed. The consumer group details page is displayed. On the Consumer Offset tab page, view the number of messages accumulated in each topic of your target consumer group. For details, see Viewing Consumer Offsets.
  • On the Monitoring > Monitoring Details page of an instance, click the By Consumer Group tab. Select the desired consumer group for Consumer Group and All topics for Topic. The Consumer Available Messages metric reflects the number of messages accumulated in all topics of this consumer group. For details about viewing the monitoring data, see Viewing Kafka Metrics.
  • On the Consumer Groups tab page of the Cloud Eye console, click the By Consumer Group tab. Select the desired consumer group for Consumer Group and All topics for Topic. The Consumer Available Messages metric reflects the number of messages accumulated in all topics of this consumer group. For details about viewing the monitoring data, see Viewing Kafka Metrics.
  • View the number of stacked messages of each topic in a consumer group by running the following command in the /bin directory of the Kafka client:

    When SASL is disabled:

    ./kafka-consumer-groups.sh --bootstrap-server {connection-address} --describe --group {group-name}

    When SASL is enabled:

    ./kafka-consumer-groups.sh --bootstrap-server {connection-address} --describe --group {group-name} --command-config {ssl-user-config.properties}
    Table 1 Parameters

    Parameter

    Description

    connection-address

    Connection address of a Kafka instance. To obtain the address, choose Overview > Connection.

    group-name

    Consumer group name.

    ssl-user-config.properties

    Configuration file name. This file contains username, password, and SSL certificate information.

    Figure 1 Viewing the total number of messages accumulated in each topic

    LAG in the returned information indicates the total number of messages accumulated in each topic.