/kafka/topics/partions/ts?cluster_id={cluster_name}?topic_id={topic_name}&start_time={timestamp}&end_time={timestamp}&interval={minutes}&metric_pattern={metric}
Gets details about a given partition.
Request
GET http://unravel-host
:3000/api/v1/kafka/topics/partions/ts?cluster_id={cluster_name}?topic_id={topic_name}&start_time={timestamp}&end_time={timestamp}&interval={minutes}&metric_pattern={metric}
Path parameters
None.
Query parameters
Name | Type | Description | ||
---|---|---|---|---|
| string | Cluster name. Required. | ||
| string | Topic name. Required. | ||
| string | Start time. Format: | ||
| string | End time. Format: | ||
| string | Size of interval in minutes . Required. | ||
| string | List of metrics to graph. Separate each metric with Valid values are:
where |
Response body
The response body contains details about the given partition.
Name | Type | Description |
---|---|---|
| string | Date in UTC time. |
| string | Date in Unix epoch time. |
| string | Document count. |
| string | Array of key average value pairs. |
Examples
Request:
curl -X GET "http://myserver.com:3000/api/v1/kafka/topics/partions/ts?cluster_id=QAHDP26B&end_time=2019-06-04T12:24:49%2B05:30&interval=1m&metric_pattern=CgLag_*_topic___consumer_offsets_5&start_time=2019-06-04T11:24:49%2B05:30&topic_id=__consumer_offsets" -H "accept: application/json" -H "Authorization: JWT token
"
Response:
{ "key_as_string":"2019-06-04T05:55:00.000Z", "Key":1559627700000, "Doc_count":3, "Avg_vl":{"value":2016} }