we want to get Kafka consumer group metrics (throttling and byte rate, for example).
We have done this already, using:
- JMX Mbean of the Kafka consumer Java application
- CLI utility:
bin/kafka-consumer-groups.sh --describe --group group_name --bootstrap-server localhost:port
.
Question: Can this be done programmatically using some Java libraries?
So far, we have tried
kafka.admin.ConsumerGroupCommand
which is also used by the bin/kafka bin/kafka-consumer-groups.sh, but we got only the subset of expected values.
Thank you for your help.