Hi Pavan,

1) you cannot read the current number of messages for a topic, but you can
read the number of bytes for a topic in Kafka metrics.

2) you cannot read the current number of subscribers directly. However you
can read from ZK and parse the results to get the subscriber counts.

3) / 4) I am not sure what you mean by "active" messages and subscription.

5) / 6) You can find this in the Kafka metrics.

You can take a look at the list of metrics here:
http://kafka.apache.org/documentation.html#monitoring

Guozhang


On Fri, Jun 5, 2015 at 11:02 AM, Pavan Chenduluru <chendul...@gmail.com>
wrote:

> Hi,
>
> I am new to kafka and I have a doubt.
>
> How to read specified topic statistics from kafka server?
>
> I want to read below parameters about existing topic from kafka.
>
> 1) How many activeMessages
> 2) How many activeSubscriptions
> 3) How many totalMessages
> 4) How many totalSubscriptions
> 5) How mnay deliveryFaults
> 6) How many pendingDelivery
>
> Pls do the needful.
>
> Thanks & Regards,
> Pavan
>



-- 
-- Guozhang

Reply via email to