Hello Sumit, Not yet. AFAIK few topic management requests got introduced in broker side (see https://issues.apache.org/jira/browse/KAFKA-2229 ) but not yet in client APIs. Querying/listing topics request doesn't seem even to be planned yet.
AdminUtils which talks with ZooKeeper via ZkClient is Kafka client API one can use to retrieve some information, if you're building your own monitoring tools or reporting custom metrics. There are already multiple OSS and closed source commercial products for monitoring Kafka which have this functionality. Kind regards, Stevo Slavic. On Mon, Jan 2, 2017 at 1:23 PM, Sumit Maheshwari <sumitm.i...@gmail.com> wrote: > Hi, > > I am looking to get information about individual brokers in kafka cluster. > The information that I am looking for is: > > - List of topics in a broker > - Partitions for each topic in a broker > - Metrics like BytesIn/Out Per min, Messages In/Min per topic > - ... > > I have tried looking into the JMX metrics seems but they does not provide > the above information. > Is it possible to get these information from the broker itself without > contacting zookeeper? > > Thanks, > Sumit >