You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Rodoljub Radivojevic <ro...@instana.com> on 2019/12/02 14:52:08 UTC

Number of leader partitions per broker

Hello,

Is it possible to calculate the number of partitions for which one broker
is a leader, using existing Kafka metrics?

Regards,
Rodoljub

Re: Number of leader partitions per broker

Posted by Ashutosh singh <ge...@gmail.com>.
kafka.server:name=LeaderCount,type=ReplicaManager   metric provide leader
count on each broker.

$>bean
kafka.server:name=LeaderCount,type=ReplicaManager
$>
$>get Value
#mbean = kafka.server:name=LeaderCount,type=ReplicaManager:
Value = 450;

On Mon, Dec 2, 2019 at 8:55 PM M. Manna <ma...@gmail.com> wrote:

> Rodoljub,
>
> On Mon, 2 Dec 2019 at 14:52, Rodoljub Radivojevic <
> rodoljub.radivojevic@instana.com> wrote:
>
> > Hello,
> >
> > Is it possible to calculate the number of partitions for which one broker
> > is a leader, using existing Kafka metrics?
> >
> > Regards,
> > Rodoljub
> >
>
> Does the below answer your question (or, hints to what you seek)?
>
> https://cwiki.apache.org/confluence/display/KAFKA/Finding+Topic+and+Partition+Leader
>
>
> Thanks,
>


-- 
Thanx & Regard
Ashutosh Singh
08151945559

Re: Number of leader partitions per broker

Posted by "M. Manna" <ma...@gmail.com>.
Rodoljub,

On Mon, 2 Dec 2019 at 14:52, Rodoljub Radivojevic <
rodoljub.radivojevic@instana.com> wrote:

> Hello,
>
> Is it possible to calculate the number of partitions for which one broker
> is a leader, using existing Kafka metrics?
>
> Regards,
> Rodoljub
>

Does the below answer your question (or, hints to what you seek)?
https://cwiki.apache.org/confluence/display/KAFKA/Finding+Topic+and+Partition+Leader


Thanks,