Skip to content
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

get a partition log size #1313

Closed
prune998 opened this issue Mar 15, 2019 · 0 comments · Fixed by #1520
Closed

get a partition log size #1313

prune998 opened this issue Mar 15, 2019 · 0 comments · Fixed by #1520

Comments

@prune998
Copy link
Contributor

Versions

Please specify real version numbers or git SHAs, not just "Latest" since that changes fairly regularly.
Sarama Version: 1.21.0
Kafka Version: 1.0.0
Go Version: 1.12

Problem Description

I would like to be able to get the Log Size for each partition in a specific topic/broker.
I even don't know if the Kafka API offer that info other than the JMX endpoint.

I see a AdminClient.describeLogDirs API call on the Java side at https://kafka.apache.org/21/javadoc/org/apache/kafka/clients/admin/DescribeLogDirsResult.html but not sure of what it contains.

Query the information of all log directories on the given set of brokers This is a convenience method for #describeLogDirs(Collection, DescribeLogDirsOptions) with default options. See the overload for more details. This operation is supported by brokers with version 1.0.0 or higher.

Any solution to get this information using Sarama ?
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants