Skip to content
This repository was archived by the owner on Mar 17, 2024. It is now read-only.
This repository was archived by the owner on Mar 17, 2024. It is now read-only.

Question: Lag exporter reports astronomical lag in seconds #496

@AlexeyRaga

Description

@AlexeyRaga

Hello,

This is not a bug report, but more a question at this time.

I have a new/reprocessing consumer that starts processing topic from the beginning.
Until it is done, kafka-lag-exporter returns astronomically high values for the lag in seconds.

Here is my Grafana dashboard screenshot.

On the first graph I am trying to manually calculate how many seconds it'll take to consume all the messages in the topic by taking the total lag and dividing by the amount of messages processed in a second.

The second one is kafka_consumergroup_group_lag_seconds from kafka-lag-exporter, and I tried to find a coefficient that would make it look similar to my manually constructed one.

It looks like that the lag time that kafka-lag-exporter returns is ~200000 times bigger than the manually calculated one!
And, according to the graph, the manually calculated one was pretty close to reality.

What am I missing here? Why the time lag reported by kafka-lag-exporter can be such a huge value? And how to fix it?

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions