/elasticsearch/{cluster}/nodes
Returns the node list and the corresponding metrics in an Elasticsearch cluster.
GET http://unravel-host
:8081/api/v1/elasticsearch/{cluster}
/nodes?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 |
{cluster} | string | Cluster name. |
{ “node1” :{ Metrics …. }, “node2” :{ Metrics …. }
Request:
curl -X GET "http://localhost:8081/api/v1/elasticsearch/elasticsearch/nodes?start_time=2020-01-01&end_time=2020-04-01" -H "accept: application/json" -H "Authorization: JWT token
"
Response:
{ "es-node-1": { "thread_pool_index_rejected": null, "fs_io_stats_total_read_operations": 874907, "fs_io_stats_total_write_operations": 619102586, "indices_docs_count": 1551925314, "indices_flush_total": 11481, "indices_flush_total_time_in_millis": 1835085, "indices_indexing_index_time_in_millis": 900479673, "indices_indexing_index_total": 1800782360, "indices_indexing_throttle_time_in_millis": null, "indices_merges_total": 1530425, "indices_search_fetch_time_in_millis": 464906, "indices_search_fetch_total": 6020352, "indices_search_query_time_in_millis": 4859332, "indices_search_query_total": 7438300, "indices_segments_count": 5599, "indices_segments_memory_in_bytes": 780607518, "indices_store_size_in_bytes": 195450839892, "jvm_gc_collectors_old_collection_count": 22, "jvm_gc_collectors_old_collection_time_in_millis": 12952, "jvm_gc_collectors_young_collection_count": 515893, "jvm_gc_collectors_young_collection_time_in_millis": 19639944, "jvm_mem_heap_used_in_bytes": 4677283048, "name": "es-node-1", "os_cpu_load_average_15m": 3.85, "os_cpu_load_average_1m": 2.9, "os_cpu_percent": 14, "os_mem_total_in_bytes": 105433157632, "os_mem_used_in_bytes": 104178266112, "thread_pool_search_queue": null, "thread_pool_search_rejected": null, "thread_pool_write_queue": null, "thread_pool_write_rejected": 99588, "fetch_latency": null, "fetch_rate": null, "flush_latency": null, "flush_rate": null, "indexing_latency": null, "indexing_rate": null, "search_latency": null, "search_rate": null } }