/elasticsearch/{cluster}/kpi_cluster
Returns the cluster level value of a specific metric.
GET http://unravel-host
/api/v1/elasticsearch/{cluster}
/kpi_cluster?start_time={date}
&end_time={date}
&prefix={metrics}
"
Name | Type | Description |
---|---|---|
| string | Name of the cluster. |
Name | Type | Description |
---|---|---|
| string | Cluster name. |
| string | Start date for report. Format: YYYY-MM-DD |
| string | End date for report. Format: YYYY-MM-DD |
| string | Any of the following metrics:
|
Name | Type | Description |
---|---|---|
Cluster name | string | Name of the cluster |
ts | - | Timestamp |
avg_vd | string | Value of the metrics in a specific timestamp. |
Request:
curl -X GET
"http://localhost:8081/api/v1/elasticsearch/elasticsearch/kpi_cluster?start_time=2020-01-01&end_time=2020-04-01&prefix=search_rate" -H "accept: application/json" -H "Authorization: JWT token
"
Response:
{ "elasticsearch": [ { "ts": 1585746000000, "avg_vd": 0 } ] }