list_consumer_groups
List Kafka consumer groups with state, member count, and consumed topics. Filter by exact topic or state to inspect empty groups and committed offsets/lag.
Instructions
List the consumer groups on the cluster, with their state, member count and the topics they consume. Filter by exact topic or group state. Empty groups may still hold committed offsets and lag; they have no active consumers to drain it. Topic filtering may inspect every group because Kafka has no topic-to-group index.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic | No | Optional topic name. When given, only groups that consume or have committed offsets for this topic are returned. Matched exactly and case-sensitively. | |
| states | No | Optional group states to return, such as Stable, Empty, PreparingRebalance or Dead. Defaults to every state. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| groups | Yes |