How to collect Consumer Group Lag from Zookeeper
masterBy default, consumer group metrics are collected via Kafka. If you need to collect consumer lag specifically from Zookeeper, you must enable the following flags:
use.consumelag.zookeeper: Set totrueto enable collection from Zookeeper.zookeeper.server: Provide the address of the Zookeeper server (e.g.,localhost:2181).
This will enable the metric kafka_consumergroupzookeeper_lag_zookeeper.