Steadybit logoReliability Hub
GitHubGitHub iconStart Free Trial
Steadybit logoReliability Hub

Check Topic Lag

CheckCheck
Fail the experiment if consumer lag exceeds a threshold for a specific topic
Targets:
Kafka Consumers
Install now

Check Topic Lag

Fail the experiment if consumer lag exceeds a threshold for a specific topic
CheckCheck
Install now

Check Topic Lag

CheckCheck
Fail the experiment if consumer lag exceeds a threshold for a specific topic
Install now

Check Topic Lag

Fail the experiment if consumer lag exceeds a threshold for a specific topic
CheckCheck
Install now
Go back to list
The action "Check Topic Lag" within the experiment editor.The action "Check Topic Lag" within the experiment editor.

Introduction

Monitors the consumer lag (offset difference between the topic's latest offset and the consumer group's committed offset) for a specific topic. If the lag exceeds the configured threshold at any point during the check, the experiment fails.

This is different from Check Consumer State which monitors the consumer group's coordination state (Stable, Dead, etc.). This action specifically measures how far behind the consumer is in processing messages.

Use Cases

  • Fail the experiment if consumer lag grows beyond an acceptable threshold during a broker fault injection.
  • Verify that consumers keep up with message production while injecting network latency.
  • Combine with Produce Periodically to generate load and verify lag stays within bounds.

Parameters

ParameterDescriptionDefault
DurationHow long the check runs. Consumer lag is polled continuously for this duration.10s
Topic to track lagRequired. The name of the Kafka topic to monitor lag for. This is the topic whose offset will be compared against the consumer group's committed offset.
Lag alert thresholdRequired. The maximum acceptable offset difference between the topic's latest offset and the consumer group's committed offset. If lag exceeds this value, the experiment fails. Specified as an integer (number of messages).

Useful Templates

See all
Simulate Kafka brokers downtime and see how consumers are handling topic lag

An experiment to block access to brokers for consumers while producing records in the topic. The consumers should get back to consume when the kafka brokers are available again and the accumulated lag must be deal with quickly.

Message Queue
Kafka
Recoverability

More Kafka Consumer Actions

See all
Start Using Steadybit Today

Get started with Steadybit, and you’ll get access to all of our features to discover the full power of Steadybit. Available for SaaS and on-prem!

Are you unsure where to begin?

No worries, our reliability experts are here to help: book a demo with them!

Statistics
-Stars
Tags
Message Queue
Kafka
AWS
Homepage
hub.steadybit.com/extension/com.steadybit.extension_kafka
License
MIT
MaintainerSteadybit
Install now
Steadybit logoReliability Hub
Start Free Trial
© 2026 Steadybit GmbH. All rights reserved.
Twitter iconLinkedIn iconGitHub icon