Tuesday, 14 March 2023

Kafka: Get consumer group status

Below command print the status of consumer group.

kafka-consumer-groups.sh --bootstrap-server {BOOT_STRAP_SERVER_DETAILS} --describe --group {MY_GROUP}
$ kafka-consumer-groups.sh --bootstrap-server localhost:9092 --describe --group 'myGroup1'

GROUP                                    TOPIC           PARTITION  CURRENT-OFFSET  LOG-END-OFFSET  LAG             CONSUMER-ID                                                                   HOST            CLIENT-ID
myGroup1 requests-topic  0          4               4               0               myGroup1-1e346c37-efbf-4ff2-8252-451d45bb5a34 /190.158.1.101  myGroup1
myGroup1 requests-topic  1          13              13              0               myGroup1-1e346c37-efbf-4ff2-8252-451d45bb5a34 /190.158.1.101  myGroup1
myGroup1 requests-topic  2          11              11              0               myGroup1-1e346c37-efbf-4ff2-8252-451d45bb5a34 /190.158.1.101  myGroup1

 

Previous                                                 Next                                                 Home

No comments:

Post a Comment