-
Notifications
You must be signed in to change notification settings - Fork 1.4k
How to get current offsets of consumer group without subscribing #1501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
currently to do this you'll need to directly use I'm working on a pull request to add this to the Datadog kafka consumer offsets check, so whenever I push that up you'll see how to do it. Long term, this would go in the admin client, but no one has had the time to write that yet: #935 |
Has this moved forwards at all? Been trying to calculate lags using this API, and all I'm missing is the current offset, as of version 1.4.4. EDIT: Answered my own question; use a |
@cjdudleybw see also #1673 (comment) including the linked source code for datadog for fetching the highwater offsets. If you are monitoring / alerting on this, then you want to directly query the cluster for the high water offsets... IMO too dangerous to trust the |
@jeffwidman KafkaAdminClient._send_request_to_node has changed in version 1.4.7...... |
Please open a new ticket, this one is nearly a year old. Also, there's a working example here of how to check offsets: https://github.com/DataDog/integrations-core/blob/master/kafka_consumer/datadog_checks/kafka_consumer/kafka_consumer.py |
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 theCURRENT-OFFSET
column of the ff command:I seem to be missing it from the documentation..
The text was updated successfully, but these errors were encountered: