-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
Description
I see that multiple brokers report log size for the same partition, which makes sense since we have leader and follower replicas. And this multiplies the number of collected metrics by the replication factor value. For example, if the topic has a replication factor of 3, we will have 3 values for every partition:
It becomes even more complicated when we have several thousand topics.
And if we want to monitor topic/partition size, we need only one value, most likely from the leader.
So the question is, is it possible to add a new label broker_type=leader|follower to this metric, so we can easily filter out all follower metrics in ingestion time, and keep only data from the leader?