List a Kafka cluster's consumer groups

List the cluster's consumer groups and how far behind each one is right now. The list is empty when no broker responds, even if the cluster has groups.

GET https://{availability_zone}.betterstackcloud.com/v1/kafka/{id}/consumer-groups
id string required

The ID of the Kafka cluster.

Authorization string required

Bearer $TOKEN

200 OK
{
  "data": [
    {
      "group_id": "123456789",
      "lag": 1,
      "topics": [
        "example"
      ],
      "members": 1,
      "partitions": 1
    }
  ]
}

Returns every consumer group in one page.

group_id string

The consumer group's ID.

lag integer

How many messages the group is behind, summed over its partitions.

topics array of strings

The names of the topics the group reads, sorted.

members integer

The number of active consumers in the group.

partitions integer

The number of partitions the group reads.