kafka监控,查看消费情况 就可以了,有不断的消费说明状态正常的
1.查看所有消费者组
kafka-consumer-groups.sh --bootstrap-server 192.168.1.13:9092 --list
2.查看组的 消费情况
kafka-consumer-groups.sh --describe --bootstrap-server 192.168.1.13:9092 --group transport-node-4a11b8dc6a4b
GROUP TOPIC PARTITION CURRENT-OFFSET LOG-END-OFFSET LAG CONSUMER-ID HOST CLIENT-ID
transport-node-4a11b8dc6a4b tb_transport.notifications.4a11b8dc6a4b 0 4766 4766 0 transport-api-notifications-4a11b8dc6a4b-21a94ddc-9ff6-499d-acfe-b04563bcdfe0 /192.168.1.4 transport-api-notifications-4a11b8dc6a4b
transport-node-4a11b8dc6a4b tb_transport.api.responses.4a11b8dc6a4b 0 4954 4954 0 transport-api-response-4a11b8dc6a4b-fddaec90-b35c-4e77-b291-5da9b60dacbd /192.168.1.4 transport-api-response-4a11b8dc6a4b
TOPIC PARTITION CURRENT-OFFSET LOG-END-OFFSET LAG CONSUMER-ID HOST CLIENT-ID
topic名字 分区id 当前已消费的条数 总条数 未消费的条数 消费id 主机ip 客户端