/elasticsearch/{cluster}/index
Returns indices and the corresponding metrics in an Elasticsearch cluster.
GET http://unravel-host
/api/v1/elasticsearch/{cluster}
/index?start_time={date}
&end_time={date}
Name | Type | Description |
---|---|---|
| string | Name of the cluster. |
Name | Type | Description |
---|---|---|
| string | Start date for report. Format: YYYY-MM-DD |
| string | End date for report. Format: YYYY-MM-DD |
Name | Type | Description |
---|---|---|
Indices | string | Index name |
Metrics | array | Metric details |
Request:
curl -X GET
"http://localhost:8081/api/v1/elasticsearch/elasticsearch/index?start_time=2020-01-01&end_time=2020-04-01" -H "accept: application/json" -H "Authorization: JWT token
"
Response:
{ ".kibana_1": { "fielddata_evictions": null, "fielddata_memory_size_in_bytes": null, "flush_total": 1, "flush_total_time_in_millis": 50, "indexing_index_time_in_millis": 1, "indexing_index_total": 3, "merges_total": null, "merges_total_time_in_millis": null, "query_cache_evictions": null, "query_cache_memory_size_in_bytes": null, "search_fetch_time_in_millis": null, "search_fetch_total": 3, "search_query_time_in_millis": 35, "search_query_total": 21, "segments_count": 1, "segments_memory_in_bytes": 2639, "store_size_in_bytes": 6352, "fetch_latency": null, "fetch_rate": null, "flush_latency": null, "flush_rate": null, "indexing_latency": null, "indexing_rate": null, "merge_latency": null, "merge_rate": null, "search_latency": null, "search_rate": null }, ".kibana_2": { "fetch_latency": null, "fetch_rate": null, "fielddata_evictions": null, "fielddata_memory_size_in_bytes": 656, "flush_latency": null, "flush_rate": null, "flush_total": 73, "flush_total_time_in_millis": 3754, "indexing_index_time_in_millis": 330, "indexing_index_total": 78, "indexing_latency": null, "indexing_rate": null, "merge_latency": null, "merge_rate": null, "merges_total": null, "merges_total_time_in_millis": null, "query_cache_evictions": null, "query_cache_memory_size_in_bytes": null, "search_fetch_time_in_millis": 8420, "search_fetch_total": 203281, "search_latency": null, "search_query_time_in_millis": 20598, "search_query_total": 203299, "search_rate": null, "segments_count": 4, "segments_memory_in_bytes": 5793, "store_size_in_bytes": 18884 } }