Skip to content

How to get current offsets of consumer group without subscribing #1501

Closed
@yoneal

Description

@yoneal

First of all thanks for this wonderful project!

In #1161 support for getting the end_offsets was added to get the high watermark of partitions without actually consuming. Is there a way to get the current offset of a consumer group, similar to the CURRENT-OFFSET column of the ff command:

./bin/kafka-consumer-groups.sh --bootstrap-server bootstrap:9092 --describe --group console-consumer-92539
TOPIC                          PARTITION  CURRENT-OFFSET  LOG-END-OFFSET  LAG        CONSUMER-ID                                       HOST                           CLIENT-ID
my_topic                      0          845771          845787          16         consumer-1-4acb3a97-d72e-4c68-805d-c9a8089b5a26   /10.128.0.17                   consumer-1

I seem to be missing it from the documentation..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions