rpk group list
List all groups.
This command lists all groups currently known to Redpanda, including empty groups that have not yet expired. The BROKER column is which broker node is the coordinator for the group. This command can be used to track down unknown groups, or to list groups that need to be cleaned up.
The TYPE column shows which rebalance protocol the group uses:
-
classic: The clients compute the partition assignment. -
consumer: The broker computes the partition assignment.
A broker that does not support ListGroups v5 reports no group type. Such a
broker cannot host groups that use the consumer protocol, so rpk lists its
groups as classic.
The STATE column shows which state the group is in.
A group of type classic can be:
-
PreparingRebalance: The group is preparing to rebalance. -
CompletingRebalance: The group is waiting on the leader to provide assignments. -
Stable: The group is not empty and has no group membership changes in process. -
Dead: Transient state as the group is being removed. -
Empty: The group currently has no members.
A group of type consumer can be:
-
Empty: The group currently has no members. -
Assigning: The broker is computing a new assignment for the group. -
Reconciling: Some members do not have their new assignment yet. -
Stable: Every member has its target assignment. -
Dead: Transient state as the group is being removed.
Examples
This section provides examples of how to use rpk group list.
List all groups:
rpk group list
List only the consumer groups:
rpk group list --types consumer
List the classic groups that are stable or empty:
rpk group list --types classic --states Stable,Empty
Flags
| Value | Type | Description |
|---|---|---|
|
string |
Output format ( |
|
stringSlice |
Comma-separated list of group states to filter for. Possible states: [PreparingRebalance, CompletingRebalance, Assigning, Reconciling, Stable, Dead, Empty]. |
|
stringSlice |
Comma-separated list of group types to filter for. Possible types: [classic, consumer]. (New in v26.3.1) |
Global flags
| Value | Type | Description |
|---|---|---|
|
string |
Redpanda or |
|
stringArray |
Override |
|
bool |
Ignore |
|
string |
|
|
bool |
Enable verbose logging. |