Hi Luke, The purpose of the count is to know how many producers and consumers and connected at any given time and it is not crossing any threshold. A bad client can open many connections affecting all others.
Thanks, Dhirendra. On Fri, Feb 4, 2022 at 9:29 AM Luke Chen <show...@gmail.com> wrote: > 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. > > >