<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Kafka Consumer Lag on Netdata</title><link>https://www.netdata.cloud/tags/kafka-consumer-lag/</link><description>Recent content in Kafka Consumer Lag on Netdata</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sat, 22 Aug 2026 05:09:03 +0300</lastBuildDate><atom:link href="https://www.netdata.cloud/tags/kafka-consumer-lag/index.xml" rel="self" type="application/rss+xml"/><item><title>Apache Kafka Consumer Lag: Troubleshooting &amp; Fixes</title><link>https://www.netdata.cloud/academy/apache-kafka-consumer-lags/</link><pubDate>Wed, 23 Jul 2025 00:00:00 +0000</pubDate><guid>https://www.netdata.cloud/academy/apache-kafka-consumer-lags/</guid><description>&lt;p&gt;You&amp;rsquo;ve built a powerful, real-time data pipeline with Apache Kafka, but suddenly, things grind to a halt. The dreaded consumer lag is exploding, alerts are firing, and your downstream applications are starved for data. This scenario is all too common for teams running Kafka at scale. Often, the culprit is a subtle interplay between consumer group rebalancing, partition assignment, and suboptimal consumer configurations. Understanding these mechanics is not just about fixing a problem; it&amp;rsquo;s about building resilient, high-throughput streaming systems from the ground up.&lt;/p&gt;</description></item><item><title>Kafka CommitFailedException: rebalanced-out consumers and poll loop timeouts</title><link>https://www.netdata.cloud/guides/kafka/kafka-commit-failed-exception/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.netdata.cloud/guides/kafka/kafka-commit-failed-exception/</guid><description>&lt;p&gt;&lt;code&gt;CommitFailedException&lt;/code&gt; with the message that the group has already rebalanced and assigned the partitions to another member means the time between &lt;code&gt;poll()&lt;/code&gt; calls exceeded &lt;code&gt;max.poll.interval.ms&lt;/code&gt;. The coordinator evicted the consumer and rejected the in-flight offset commit.&lt;/p&gt;&#10;&lt;p&gt;When one consumer is evicted, the group rebalances. If other consumers are also slow, or if the rebalance itself takes long enough that healthy consumers miss the same deadline, the group enters a rebalance storm: it oscillates between &lt;code&gt;JoinGroup&lt;/code&gt; and &lt;code&gt;SyncGroup&lt;/code&gt; without stabilizing, and lag grows without bound.&lt;/p&gt;</description></item><item><title>Kafka consumer group lag growing: detection, lag-as-time, and root causes</title><link>https://www.netdata.cloud/guides/kafka/kafka-consumer-group-lag-growing/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.netdata.cloud/guides/kafka/kafka-consumer-group-lag-growing/</guid><description>&lt;p&gt;When a consumer group falls behind, lag climbs monotonically. If the committed offset crosses the retention boundary, consumers hit &lt;code&gt;OffsetOutOfRangeException&lt;/code&gt; and must reset to earliest or latest, reprocessing or skipping data. Restarting the consumer is a common first reaction, but broker-side fetch latency, page cache eviction, and network saturation are equally common culprits. Detect lag accurately, convert it to time, and trace the root cause without guessing.&lt;/p&gt;&#10;&lt;h2 id="what-this-means"&gt;What this means&lt;/h2&gt;&#10;&lt;p&gt;Consumer lag is &lt;code&gt;log-end-offset&lt;/code&gt; minus the last committed offset for each partition in a group. Monotonic growth means the consumer is not keeping up with the production rate. The immediate risk is committed offset falling behind log retention, forcing a reset to earliest or latest.&lt;/p&gt;</description></item><item><title>Kafka consumer group rebalancing too often: heartbeats, session timeout, and assignors</title><link>https://www.netdata.cloud/guides/kafka/kafka-consumer-group-rebalancing-frequently/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.netdata.cloud/guides/kafka/kafka-consumer-group-rebalancing-frequently/</guid><description>&lt;p&gt;Consumer group lag is growing, application logs are full of &lt;code&gt;JoinGroup&lt;/code&gt; and &lt;code&gt;SyncGroup&lt;/code&gt; messages, and &lt;code&gt;kafka-consumer-groups.sh&lt;/code&gt; shows the group flipping between &lt;code&gt;Stable&lt;/code&gt; and &lt;code&gt;PreparingRebalance&lt;/code&gt;. Healthy groups rebalance only during membership changes and planned deployments. More than two or three rebalances per hour for a stable group signals instability. The usual cause is a mismatch between processing latency and one of three timeouts: &lt;code&gt;session.timeout.ms&lt;/code&gt;, &lt;code&gt;heartbeat.interval.ms&lt;/code&gt;, or &lt;code&gt;max.poll.interval.ms&lt;/code&gt;. The assignor strategy and static membership configuration determine how painful each rebalance is.&lt;/p&gt;</description></item><item><title>Kafka Consumer Lag Monitoring</title><link>https://www.netdata.cloud/monitoring-101/kafka_consumer_lag-monitoring/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.netdata.cloud/monitoring-101/kafka_consumer_lag-monitoring/</guid><description>&lt;h2 id="kafka-consumer-lag-monitoring"&gt;Kafka Consumer Lag Monitoring&lt;/h2&gt;&#10;&lt;h3 id="what-is-kafka-consumer-lag"&gt;What Is Kafka Consumer Lag?&lt;/h3&gt;&#10;&lt;p&gt;Kafka Consumer Lag represents the difference between the latest offset of a partition and the offset of the consumer group. It is a crucial metric within Kafka&amp;rsquo;s architecture as it indicates the latency for messages consumed by consumers in a Kafka topic. Properly monitoring Kafka Consumer Lag ensures efficient message queue management and prevents bottlenecks in your streaming applications.&lt;/p&gt;&#10;&lt;h3 id="monitoring-kafka-consumer-lag-with-netdata"&gt;Monitoring Kafka Consumer Lag With Netdata&lt;/h3&gt;&#10;&lt;p&gt;To monitor Kafka Consumer Lag, Netdata uses an openmetrics (Prometheus) exporter. Netdata&amp;rsquo;s $name monitoring tool allows you to ingest data from any Prometheus exporter seamlessly, offering automatic dashboards, alerts, and comprehensive insights without requiring a Prometheus server or Grafana. By leveraging Netdata&amp;rsquo;s dashboards, DevOps and IT teams can effectively track Kafka performance, ensuring real-time data processing stays smooth and efficient.&lt;/p&gt;</description></item><item><title>Kafka consumer rebalance storm: stuck in PreparingRebalance and max.poll.interval.ms</title><link>https://www.netdata.cloud/guides/kafka/kafka-consumer-rebalance-storm/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.netdata.cloud/guides/kafka/kafka-consumer-rebalance-storm/</guid><description>&lt;p&gt;Consumer group lag climbs while brokers report zero under-replicated partitions, normal produce and fetch latency, and normal request handler idle percent. The consumer group oscillates between Stable, PreparingRebalance, and CompletingRebalance without settling long enough to make progress. Every rebalance cycle pauses consumption; lag grows because time spent rebalancing dwarfs time spent fetching. This is a consumer rebalance storm. It is almost always a client-side timeout or processing issue. Look for CommitFailedException or max.poll.interval.ms exceeded in consumer logs.&lt;/p&gt;</description></item><item><title>Kafka monitoring checklist: the signals every production cluster needs</title><link>https://www.netdata.cloud/guides/kafka/kafka-monitoring-checklist/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.netdata.cloud/guides/kafka/kafka-monitoring-checklist/</guid><description>&lt;p&gt;Kafka failures follow predictable paths: an ISR shrinks, a controller queue backs up, a disk fills while the cleaner thread hangs, or a consumer rebalance storm hides behind healthy broker metrics. You need to know which signals matter and when they justify a 3 AM page.&lt;/p&gt;&#10;&lt;p&gt;This checklist organizes broker-side signals into four levels. Each builds on the last: Level 1 prevents data loss. Level 2 prevents surprises. Level 3 exposes leading indicators. Level 4 catches silent killers. Use it to audit dashboards, tune alert severity, and justify instrumentation.&lt;/p&gt;</description></item><item><title>Kafka OffsetOutOfRangeException: when retention deletes data before the consumer reads it</title><link>https://www.netdata.cloud/guides/kafka/kafka-offset-out-of-range-exception/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.netdata.cloud/guides/kafka/kafka-offset-out-of-range-exception/</guid><description>&lt;p&gt;&lt;code&gt;OffsetOutOfRangeException&lt;/code&gt; means the consumer requested an offset the broker no longer holds. The log segment containing the consumer&amp;rsquo;s committed position was deleted by retention before the consumer caught up. This is not a transient fetch error; it is data loss, and the outcome depends entirely on &lt;code&gt;auto.offset.reset&lt;/code&gt;. Many clients default to &lt;code&gt;latest&lt;/code&gt;, which turns this exception into silent skipping.&lt;/p&gt;&#10;&lt;p&gt;This is a lag problem wearing a fetch error. The consumer was too slow, paused too long, or was offline longer than the topic&amp;rsquo;s &lt;code&gt;retention.ms&lt;/code&gt;. Once the log start offset moves past the committed offset, every subsequent fetch fails.&lt;/p&gt;</description></item></channel></rss>