Files
doc-exports/docs/dms/umn/kafka-faq-0041.html
chenjunjie 190f09501c DMS UMN 20250314 version
Reviewed-by: Liudmila Denisova <ldenisov@noreply.gitea.eco.tsi-dev.otc-service.com>
Co-authored-by: chenjunjie <chenjunjie@huawei.com>
Co-committed-by: chenjunjie <chenjunjie@huawei.com>
2025-10-06 09:50:17 +00:00

15 lines
4.0 KiB
HTML

<a name="kafka-faq-0041"></a><a name="kafka-faq-0041"></a>
<h1 class="topictitle1">How Do I View the Number of Accumulated Messages?</h1>
<div id="body0000001181826821"><p id="kafka-faq-0041__p112522472014">View the number of accumulated messages using any of the following methods:</p>
<ul id="kafka-faq-0041__ul1657019511234"><li id="kafka-faq-0041__li11570185132316">On the <strong id="kafka-faq-0041__b499124111440">Consumer Groups</strong> 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 <strong id="kafka-faq-0041__b1917019202457">Consumer Offset</strong> tab page, view the number of messages accumulated in each topic of your target consumer group. For details, see <a href="kafka-ug-0014.html">Viewing Consumer Offsets</a>.</li><li id="kafka-faq-0041__li26102327574">On the <strong id="kafka-faq-0041__b883301414198">Monitoring</strong> page of an instance, click the <strong id="kafka-faq-0041__b5827194334412">By Consumer Group</strong> tab. Select the desired consumer group for <strong id="kafka-faq-0041__b0827104374412">Consumer Group</strong> and <strong id="kafka-faq-0041__b482744319443">All topics</strong> for <strong id="kafka-faq-0041__b158271543114415">Topic</strong>. The <strong id="kafka-faq-0041__b58274435449">Consumer Available Messages</strong> metric reflects the number of messages accumulated in all topics of this consumer group. For details about viewing the monitoring data, see <a href="kafka-ug-190605001.html">Viewing Kafka Metrics</a>.</li><li id="kafka-faq-0041__li20593381704">On the <strong id="kafka-faq-0041__b2824949165211">Consumer Groups</strong> tab page of the Cloud Eye console, click the <strong id="kafka-faq-0041__b1082494985210">By Consumer Group</strong> tab. Select the desired consumer group for <strong id="kafka-faq-0041__b1682417498528">Consumer Group</strong> and <strong id="kafka-faq-0041__b108251249145219">All topics</strong> for <strong id="kafka-faq-0041__b11825249165211">Topic</strong>. The <strong id="kafka-faq-0041__b4825104910529">Consumer Available Messages</strong> metric reflects the number of messages accumulated in all topics of this consumer group. For details about viewing the monitoring data, see <a href="kafka-ug-190605001.html">Viewing Kafka Metrics</a>.</li><li id="kafka-faq-0041__li589275520402">In the <strong id="kafka-faq-0041__b168614112118">/bin</strong> directory on the <a href="https://cwiki.apache.org/confluence/display/KAFKA/Clients" target="_blank" rel="noopener noreferrer">Kafka client</a>, run command <strong id="kafka-faq-0041__b102956215204">kafka-consumer-groups.sh --bootstrap-server $<em id="kafka-faq-0041__i162742719229">{connection-address}</em> --describe --group $<em id="kafka-faq-0041__i73992011192212">{consumer-group-name}</em></strong> to check number of accumulated messages of each topic in a consumer group. <strong id="kafka-faq-0041__b13303137155517">LAG</strong> indicates the total number of messages accumulated in each topic.<div class="fignone" id="kafka-faq-0041__fig158441312131415"><span class="figcap"><b>Figure 1 </b>Viewing the total number of messages accumulated in each topic</span><br><span><img id="kafka-faq-0041__image188441312201411" src="en-us_image_0000001435265813.png"></span></div>
<p id="kafka-faq-0041__p39191724244">If SASL authentication is enabled for the Kafka instance, the <strong id="kafka-faq-0041__b1334183115917">--command-config <em id="kafka-faq-0041__i5334935598">{SASL authentication configuration file consumer.properties}</em></strong> parameter must be added to the preceding commands. For details about the configuration file <strong id="kafka-faq-0041__b18334737594">consumer.properties</strong>, see the CLI access instructions provided in <a href="kafka-ug-180801001.html">Connecting to Kafka Using the Client (Ciphertext Access)</a>.</p>
</li></ul>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="kafka-faq-190416001.html">Messages</a></div>
</div>
</div>