Skip to content

Metric kafka_log_log_size #102

@arnitolog

Description

@arnitolog

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:

Image

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions