Consumer Groups
Pilot monitors Kafka consumer groups in the background and provides visibility into group state, membership, and lag.
Background Collection
Consumer group data is collected automatically:
PILOT_CONSUMER_GROUP_COLLECTION_ENABLED=true # Enable (default: true)
PILOT_CONSUMER_GROUP_COLLECTION_INTERVAL=15s # Collection intervalFeatures
Group Overview
View all consumer groups with their state (Stable, Rebalancing, Empty, Dead), member count, and assigned topics.
Lag Monitoring
Per-partition lag metrics for each consumer group, showing the difference between the latest produced offset and the committed consumer offset.
Consumption Rates and Source Times
Consumption rates show how fast committed offsets advance. They are averaged over about five minutes, so a rate can stay above zero for several minutes after a group stops. Consumer byte rates use estimated record sizes, not measured network traffic.
For a topic’s consumption rate, the Topics page uses the fastest group for each partition. It does not sum all consumer groups.
Lag and consumption summaries include the times of the last successful collection (observationStartedAt, observationCompletedAt). The same times are exported as Prometheus metrics.
Offset Reset
Reset consumer group offsets with the earliest retained offset, current log end, a date and time, or exact offsets. A mutation license is required. Stop the group first and wait for Empty or Dead state with no active members.
The dialog provides a review before applying:
- Select all partitions or a subset. Filters do not remove hidden selected partitions from the operation.
- Preview exact targets and inspect the Replay, Skip and Unchanged counts. Targets must lie within each partition’s retained range.
- Acknowledge the processing effect. Before submission, Pilot rechecks group eligibility, retained ranges and current offsets. Changed offsets require a new review.
- Check the result. Pilot reads the committed offsets again and shows whether they match the targets. If that check fails, keep the group stopped and refresh the result before another request.
Earlier offsets can repeat processing; later offsets can skip records for this group. Moving an offset cannot undo application side effects or restore records deleted by retention.
Reversing an Offset Reset
The Audit Log page cannot undo an offset reset with one click. The audit event keeps the previous offsets and the requested targets, so you can restore them yourself.
Kafka can move offsets backwards. To restore previous positions, stop the group and review a new exact-offset reset against its current positions and retained ranges. A previous position below the retained log start is no longer recoverable. See Audit Reversal Limits.
Group Deletion
Delete consumer groups that are no longer needed (requires license). The group must be in an Empty or Dead state.
API Endpoints
| Method | Path | Description | License |
|---|---|---|---|
GET | /api/v1/consumer-groups | List all consumer groups | No |
GET | /api/v1/consumer-groups/summary | Aggregated statistics | No |
GET | /api/v1/consumer-groups/{group} | Group details with members | No |
GET | /api/v1/consumer-groups/{group}/lag | Per-partition lag | No |
POST | /api/v1/consumer-groups/{group}/reset-offsets | Reset offsets | Yes |
DELETE | /api/v1/consumer-groups/{group} | Delete a group | Yes |