Hi Dhirendra,

Not sure what's the purpose of knowing the count of number of producers and
consumers?

Theres's metrics: `Consumer Group Count` to know the total number of
Consumer Groups.
For consumers, they go up and down from time to time, and the consumer
group will rebalance the partitions automatically. So monitoring the
`consumer group` is a better idea.

For producers, as far as I know, there's no such metrics because producers.

You can refer to the documentation for more other metrics:
https://kafka.apache.org/documentation/#monitoring

Thank you.
Luke


On Thu, Feb 3, 2022 at 1:54 PM Dhirendra Singh <dhirendr...@gmail.com>
wrote:

> Hi All,
> does kafka have any metrics for count of number of producers and consumers
> connected to a kafka cluster and any given time ?
>
> Thanks,
> Dhirendra.
>

Reply via email to