# Monitor Kafka Consumer Lag Metrics with Dynatrace

**URL:** <https://community.dynatrace.com/t/monitor-kafka-consumer-lag-metrics-with-dynatrace/47548>\
**Category:** Open Q&A\
**Tags:** technologies, kafka, dynatrace-managed\
**Created:** [September 9, 2024, 2:28pm UTC](https://community.dynatrace.com/t/monitor-kafka-consumer-lag-metrics-with-dynatrace/47548 "2024-09-09T14:28:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sri9](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@sri9](https://community.dynatrace.com/u/sri9)\
**Post date:** [September 9, 2024, 2:28pm UTC](https://community.dynatrace.com/t/monitor-kafka-consumer-lag-metrics-with-dynatrace/47548/1 "2024-09-09T14:28:53Z")

</div>

_Summary:&nbsp;This thread explains how to access Kafka consumer lag metrics in Dynatrace, including where the data comes from and how to visualise lag for troubleshooting stream delays._

Hello there, I am trying to monitor Kafka Consumer Lag metrics using Dynatrace AM.

However, I am facing challenges when exporting these metrics out of the box. I need Lag metrics per Topic/partition and Consumer group. Any workaround/solution available? Please provide guidance on this topic. Thanks in advance!  
Note. We are using the Cloudera-provided Kafka distribution.

---

<div class="post-metadata">

**Author:** ![erh\_inetum](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@erh\_inetum](https://community.dynatrace.com/u/erh_inetum)\
**Post date:** [September 10, 2024, 9:48am UTC](https://community.dynatrace.com/t/monitor-kafka-consumer-lag-metrics-with-dynatrace/47548/2 "2024-09-10T09:48:15Z")

</div>

Hi&nbsp;[@sri9](https://community.dynatrace.com/user/80459)&nbsp;,

Have you tried to install Apache Kafka extension from Hub?

In this extension you can find these metrics related to Lag:

 ![erh_inetum_1-1725961661109.png](https://global.discourse-cdn.com/dynatrace/original/3X/5/5/5549d833d38e5221a7b974d944ef9b9b060e3af9.png)

Hope it helps.

Regards,

Elena.

---

<div class="post-metadata">

**Author:** ![sri9](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@sri9](https://community.dynatrace.com/u/sri9)\
**Post date:** [September 16, 2024, 10:16am UTC](https://community.dynatrace.com/t/monitor-kafka-consumer-lag-metrics-with-dynatrace/47548/3 "2024-09-16T10:16:36Z")

</div>

Hi Elena,

Thanks for your prompt response. Yes, I did, but still unable to get consumer/lag metrics on Dashboard.  
Still puzzled where these metrics are 🙂 Thanks

---

<div class="post-metadata">

**Author:** ![erh\_inetum](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@erh\_inetum](https://community.dynatrace.com/u/erh_inetum)\
**Post date:** [September 16, 2024, 11:00am UTC](https://community.dynatrace.com/t/monitor-kafka-consumer-lag-metrics-with-dynatrace/47548/4 "2024-09-16T11:00:07Z")

</div>

Hi&nbsp;[@sri9](https://community.dynatrace.com/user/80459)&nbsp;,

Welcome.

The consumer/lag can be get clicking on “customer-metrics”:

 ![erh_inetum_0-1726484245729.png](https://global.discourse-cdn.com/dynatrace/original/3X/a/6/a62a020348710ac2dc01ae1333288eaa29b8f5aa.png)

But about lag metrics, maybe you may face with a problem described [here](https://community.dynatrace.com/post/255582#M5127)

Hope it helps.

Regards,

Elena.
