Skip to content

Add time-based consumer group lag and indication of lag trend #2743

Description

@joekent123

Adding time-based (rather than offset-based) consumer group lag was one of the most common priority items coming out of the workshop on making the Console more suitable for app developers. Time based lag (e.g. this consumer group is 30 seconds behind the most recent offset in this partition) is a common metrics we see in competitor products.

In addition to adding time-based lag we should also consider adding a chart or indication if the lag is growing, shrinking or maintaining over time as this is a useful indicator to an app developer of consumer group health.


Below is a work item summary generated in Bob:

1 — Consumer Lag Trending & Time-Based Lag Display

Priority: 🔴 High | Scope: M

Workshop stories addressed

  • "An app developer needs to be able to see how far behind in time their app is — CG lag metrics should show time lag as well as absolute message lag."
  • "An app developer can see consumer groups that are lagging behind."
  • "An app developer can see that a consumer is lagging in either time or number of messages."
  • "An app developer can identify trends before they become a problem."
  • "An app developer can view performance trends in their Kafka cluster so that they can identify potential issues."

Current state

The console shows point-in-time consumer group lag (message count and current/end offsets). There is no lag history, no trend chart, and no time-based lag calculation (i.e. how many seconds/minutes behind the latest message the consumer currently is).

What needs building

  1. Time-lag column alongside message-lag in the consumer groups list and detail view. Convert message offset delta to a time estimate using the topic's message.timestamp.type and last-seen message timestamps.
  2. Lag trend chart on the consumer group detail page — a time-series chart (backed by Prometheus) showing lag over the last N minutes/hours, with a configurable time window selector.
  3. Lag history in the topic consumer-groups sub-tab — summary sparklines or trend indicators (up/stable/down) alongside current lag numbers.

Competitive context

  • Confluent Control Center — lag trending is a core feature; considered table stakes.
  • Conduktor — rich consumer lag charts with time-range selection.
  • AKHQ — basic lag display; no native trending.
  • Redpanda Console — consumer group lag visible; trending limited.

Gap severity: Critical. Lag is the primary health signal for app developers. Without trend data, developers cannot distinguish a recovering lag from a worsening one at a glance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions