When you say "topic size", do you mean # of topics? If so, you can send
TopicMetadataRequest to any broker. See
https://cwiki.apache.org/confluence/display/KAFKA/0.8.0+SimpleConsumer+Examplefor
details. In particular, if the topic list in the request is empty, you
get all topics.

Thanks,

Jun


On Wed, Apr 9, 2014 at 4:49 AM, Krzysztof Ociepa <ociepa.krzysz...@gmail.com
> wrote:

> Hi Team,
>
> I would like to ask you about the easiest way to fetch topics metadata
> from my app. My goal is monitoring of the topic size in my java app
> (when I have also producers). Is there any API in Kafka libs for that? I
> would like to avoid direct connection to the Zookeeper.
>
> Thanks,
> Chris
>

Reply via email to