Home

/kafka/brokers?cluster_id={cluster_name}&start_time={timestamp}&end_time={timestamp}

Gets a list of Kafka brokers active on a given cluster during a given timeframe.

Request
GET http://unravel-host:3000/api/v1/kafka/brokers?cluster_id={cluster_name}&start_time={timestamp}&end_time={timestamp}
Path parameters

None.

Query parameters

Required parameters are highlighted.

Name

Type

Description

cluster_id

string

Cluster name.

start_time

string

Start time. Format: YYYY-MM-DDTHH:MM:SS.NNNZ or Unix epoch time.

end_time

string

End time. Format: YYYY-MM-DDTHH:MM:SS.NNNZ or Unix epoch time.

Response body

The response body contains an array of metrics per broker.

Name

Type

Description

broker_name

array

Array of broker metrics.

Examples

Request:

curl -X GET "http://myserver.com:3000/api/v1/kafka/brokers?cluster_id=QAHDP26B&end_time=2019-06-03T16:08:52%2B05:30&start_time=2019-06-03T15:08:52%2B05:30" -H  "accept: application/json" -H  "Authorization: JWT token"

Response:

{"QAHDP26B": {
    "ActiveControllerCount-Value":1,
    "OfflinePartitionsCount-Value":43,
    "BytesInPerSec_newTopic1-OneMinuteRate":8.893181625e-314,
    "BytesOutPerSec___consumer_offsets-OneMinuteRate":5549.999999999995,
    "MessagesInPerSec___consumer_offsets-OneMinuteRate":49.99999999999996,
    "TotalFetchRequestsPerSec___consumer_offsets-OneMinuteRate":514.6005947658281,
    "UnderReplicatedPartitions-Value":0,
    }
}