Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Gather consumer lag #12

Open
Dabz opened this issue Feb 11, 2020 · 4 comments
Open

Gather consumer lag #12

Dabz opened this issue Feb 11, 2020 · 4 comments

Comments

@Dabz
Copy link
Owner

Dabz commented Feb 11, 2020

Currently, the Metric API does not expose the consumer lag. But we could retrieve it in multiple ways, e.g. the exporter could rely on the Admin API to expose it.

@alonisser
Copy link

Note that there is lightbend/kafka-lag-exporter project that get the lag

@danksim
Copy link

danksim commented Aug 25, 2021

@Dabz could you elaborate? is this planned work for the future? or is it already possible? would love to get Confluent Kafka broker lag metrics via this exporter.

@Dabz
Copy link
Owner Author

Dabz commented Aug 26, 2021

Hi @danksim , at the moment, you can not retrieve the lag via the ccloudexporter as this metric is not exposed through the Metrics API. The lag might be exposed through the Metrics API in the future, but I do not have any ETA to communicate.

In the meantime, if you need to retrieve the lag, the easiest is to rely on the lag exporter: lightbend/kafka-lag-exporter .
I did a POC a while ago to gather the lag inside ccloudexporter, it introduces a fair amount of changes (e.g. need to be bundled with librdkafka), so I put it aside for the moment.

@danksim
Copy link

danksim commented Aug 26, 2021

@Dabz I did end up using lightbend/kafka-lag-exporter to export our hosted (paid) Confluent Kafka broker's lag metrics yesterday. Was just wondering if there was a way to do it using Dabz/ccloudexporter without introducing another dependency. That is all. Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants