doc-exports/docs/dms/umn/kafka-faq-0041.html
Chen, Junjie dd8a3a658b DMS UMN Initial Version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Chen, Junjie <chenjunjie@huawei.com>
Co-committed-by: Chen, Junjie <chenjunjie@huawei.com>
2022-12-08 00:33:11 +00:00

16 lines
4.4 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_0021.html">Querying Consumer Group Details</a>.</li><li id="kafka-faq-0041__li26102327574">On the <strong id="kafka-faq-0041__b45722427480">Monitoring</strong> tab page of an instance, click the <strong id="kafka-faq-0041__b679914312497">By Consumer Group</strong> tab. Select the desired consumer group for <strong id="kafka-faq-0041__b194991033184918">Consumer Group</strong> and <strong id="kafka-faq-0041__b1569817593497">All queues</strong> for <strong id="kafka-faq-0041__b0386184185010">Queue</strong>. The <strong id="kafka-faq-0041__b1910192318528">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 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 queues</strong> for <strong id="kafka-faq-0041__b11825249165211">Queue</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 Metrics</a>.</li><li id="kafka-faq-0041__li589275520402">On the <a href="https://cwiki.apache.org/confluence/display/KAFKA/Clients" target="_blank" rel="noopener noreferrer">Kafka client</a>, run the <strong id="kafka-faq-0041__b188921336205913">kafka-consumer-groups.sh --bootstrap-server </strong><em id="kafka-faq-0041__i147859263594">{Kafka connection address}</em><strong id="kafka-faq-0041__b134315446597"> --describe --group </strong><em id="kafka-faq-0041__i6785026155913">{Consumer group}</em> command in the <strong id="kafka-faq-0041__b8654175613394">/</strong><em id="kafka-faq-0041__i534124111398">{directory where the CLI is located}</em><strong id="kafka-faq-0041__b10654356143914">/kafka_{version}/bin/</strong> directory to view the number of messages accumulated in each topic of the 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>
<div class="note" id="kafka-faq-0041__note1457918331113"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="kafka-faq-0041__p135791733101111">If SASL authentication is enabled for the Kafka instance, the <strong id="kafka-faq-0041__b5511162135915">--command-config <em id="kafka-faq-0041__i1451192115597">{SASL authentication configuration file consumer.properties}</em></strong> parameter must be added to the preceding command. For details about the configuration file <strong id="kafka-faq-0041__b5511162135919">consumer.properties</strong>, see the CLI access instructions provided in <a href="kafka-ug-180801001.html">Accessing a Kafka Instance with SASL</a>.</p>
</div></div>
</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>