Skip to contentManaged Kafka is live: Apache Kafka on AWS for half the cost of MSK

Kafka clusters

Get Kafka topic partition sizes

GET/kafka-clusters/{uuid}/topic-sizes

Retrieves cached, customer-safe partition sizes for every topic unless forceRefresh is true.

Authorizations

  • Authorizationstringheaderrequired

    API key passed as a Bearer token in the Authorization header.

Request

curl --request GET \
  --url https://api.artie.com/kafka-clusters/{uuid}/topic-sizes \
  --header 'Authorization: Bearer <token>'

Path parameters

  • uuidstringrequired

Query parameters

  • forceRefreshboolean

Responses

200OKapplication/json

  • itemsobject[]required
    Show child attributes
    • partitionsobject[] | nullrequired
      Show child attributes
      • partitioninteger<int32>required
      • sizeBytesinteger<int64>required
    • remoteSizeBytesinteger | null

      The topic's size in remote storage (S3). Missing when Datadog has no data for it.

    • topicstringrequired

404Not Found

500Internal Server Error

200 OK
{
  "items": [
    {
      "partitions": [
        {
          "partition": 123,
          "sizeBytes": 123
        }
      ],
      "remoteSizeBytes": 123,
      "topic": "<string>"
    }
  ]
}

Was this page helpful?