aiokafka icon indicating copy to clipboard operation
aiokafka copied to clipboard

Admin client: list offsets per topic/partition

Open noamta-gloat opened this issue 1 year ago • 1 comments

Describe the solution you'd like A new function in the admin client that lets me retrieve the offsets (earliest/latest) of each partition.

Additional context Confluent's admin client has list_offsets.

My use case is retrieving the number of messages behind per consumer-group/topic. list_consumer_group_offsets provides the offsets per consumer group, and I need the offset of the latest messages.

noamta-gloat avatar Aug 20 '24 14:08 noamta-gloat

Any workaround to do this, hopefully not having to instantiate a Consumer to get that information ?

svinther avatar Jun 15 '25 08:06 svinther