KMinion is a feature-rich Prometheus exporter for Apache Kafka written in Go. It is lightweight and highly configurable so that it will meet your requirements.
MIT License
620
stars
122
forks
source link
Export number of members and assigned partitions for each topic in a consumer group #104
Currently, for each consumer group the total number of members (consumers) in the group is exported.
For a consumer group subscribed to multiple topics, it would be also useful to have a metric to capture the number of consumer group members for each topic and also the number of partitions assigned for each topic.
While the consumer group has 8 members in total, one can see that the group is not very well balanced from individual topic perspective, i.e. two consumers are not assigned any partition
Currently, for each consumer group the total number of members (consumers) in the group is exported. For a consumer group subscribed to multiple topics, it would be also useful to have a metric to capture the number of consumer group members for each topic and also the number of partitions assigned for each topic.
Here is an example:
While the consumer group has 8 members in total, one can see that the group is not very well balanced from individual topic perspective, i.e. two consumers are not assigned any partition
It would be useful to have the following metrics:
1/ consumer_group_members -> 8 (already available)
2/ consumer_group_topic_members
3/ consumer_group_topic_assigned_partitions