> ## Documentation Index
> Fetch the complete documentation index at: https://www.artie.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Managed Kafka cluster rates

> Retrieves a Managed Kafka cluster's messages in and bytes out per second over the last 5 minutes, each topic's messages in per second now and over the last hour, and each consumer group's lag per topic over the range with its derived read rate. Cached for 30 seconds. Returns 400 for other clusters and 409 if the cluster isn't active.

`GET /kafka-clusters/{uuid}/rates`

## Authorization

* `Authorization` (header): API key passed as a Bearer token in the Authorization header.

## Path parameters

* `uuid` (string, required)

## Query parameters

* `range` (string): How far back the topic and consumer group series go, defaults to 1h One of: `1h`, `6h`.

## Example request

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

## Responses

### 200 OK

* `cluster` (object, required)
  * `bytesInPerSecond` (number | null, required)
  * `bytesInSeries` (object[], required)
    * `timestamp` (string<date-time>, required)
    * `value` (number<double>, required)
  * `bytesOutPerSecond` (number | null, required)
  * `bytesOutSeries` (object[], required)
    * `timestamp` (string<date-time>, required)
    * `value` (number<double>, required)
  * `messagesInPerSecond` (number | null, required)
* `groups` (object[], required)
  * `group` (string, required)
  * `lag` (object[], required)
    * `timestamp` (string<date-time>, required)
    * `value` (number<double>, required)
  * `readPerSecond` (number | null, required)
  * `topic` (string, required)
* `seriesStepSeconds` (integer, required)
* `topics` (object[], required)
  * `messagesInPerSecond` (number | null, required)
  * `messagesInSeries` (object[], required)
    * `timestamp` (string<date-time>, required)
    * `value` (number<double>, required)
  * `topic` (string, required)

```json
{
  "cluster": {
    "bytesInPerSecond": 123,
    "bytesInSeries": [
      {
        "timestamp": "2023-11-07T05:31:56Z",
        "value": 123
      }
    ],
    "bytesOutPerSecond": 123,
    "bytesOutSeries": [
      {
        "timestamp": "2023-11-07T05:31:56Z",
        "value": 123
      }
    ],
    "messagesInPerSecond": 123
  },
  "groups": [
    {
      "group": "<string>",
      "lag": [
        {
          "timestamp": "2023-11-07T05:31:56Z",
          "value": 123
        }
      ],
      "readPerSecond": 123,
      "topic": "<string>"
    }
  ],
  "seriesStepSeconds": 123,
  "topics": [
    {
      "messagesInPerSecond": 123,
      "messagesInSeries": [
        {
          "timestamp": "2023-11-07T05:31:56Z",
          "value": 123
        }
      ],
      "topic": "<string>"
    }
  ]
}
```

### 400 Bad Request

### 404 Not Found

### 409 Conflict

### 500 Internal Server Error

### 502 Bad Gateway