diff --git a/x-pack/plugins/monitoring/server/lib/details/get_series.js b/x-pack/plugins/monitoring/server/lib/details/get_series.js index 5c74ef47b4dc2a..081a8213082595 100644 --- a/x-pack/plugins/monitoring/server/lib/details/get_series.js +++ b/x-pack/plugins/monitoring/server/lib/details/get_series.js @@ -39,7 +39,7 @@ function getUuid(req, metric) { } else if (metric.app === 'logstash') { return req.params.logstashUuid; } else if (metric.app === 'elasticsearch') { - return req.params.resolver; + return req.params.nodeUuid; } } diff --git a/x-pack/test/api_integration/apis/monitoring/elasticsearch/fixtures/node_detail.json b/x-pack/test/api_integration/apis/monitoring/elasticsearch/fixtures/node_detail.json index 0028d003445e7c..c800c4edc52c02 100644 --- a/x-pack/test/api_integration/apis/monitoring/elasticsearch/fixtures/node_detail.json +++ b/x-pack/test/api_integration/apis/monitoring/elasticsearch/fixtures/node_detail.json @@ -1,1415 +1,418 @@ { + "nodeSummary": { + "resolver": "jxcP6ue7eRCieNNitFTT0EA", + "node_ids": [], + "attributes": {}, + "transport_address": "", + "name": "jxcP6ue7eRCieNNitFTT0EA", + "type": "node", + "nodeTypeLabel": "Offline Node", + "status": "Offline", + "isOnline": false + }, "metrics": { - "node_cpu_metric": [ - { - "bucket_size": "10 seconds", - "data": [ - [ - 1507235520000, - 1 - ], - [ - 1507235530000, - 0 - ], - [ - 1507235540000, - 0 - ], - [ - 1507235550000, - 1 - ], - [ - 1507235560000, - 2 - ], - [ - 1507235570000, - 0 - ], - [ - 1507235580000, - 2 - ], - [ - 1507235590000, - 0 - ], - [ - 1507235600000, - 0 - ], - [ - 1507235610000, - 3 - ], - [ - 1507235620000, - 2 - ], - [ - 1507235630000, - 2 - ], - [ - 1507235640000, - 0 - ], - [ - 1507235650000, - 1 - ], - [ - 1507235660000, - 0 - ], - [ - 1507235670000, - 2 - ], - [ - 1507235680000, - 2 - ], - [ - 1507235690000, - 1 - ], - [ - 1507235700000, - 0 - ] - ], - "metric": { - "app": "elasticsearch", - "description": "Percentage of CPU usage for the Elasticsearch process.", - "field": "node_stats.process.cpu.percent", - "format": "0,0.[00]", - "hasCalculation": false, - "isDerivative": false, - "label": "CPU Utilization", - "metricAgg": "max", - "units": "%" - }, - "timeRange": { - "max": 1507235712000, - "min": 1507235508000 - } - } - ], - "node_jvm_mem": [ - { - "bucket_size": "10 seconds", - "data": [ - [ - 1507235520000, - 709623808 - ], - [ - 1507235530000, - 709623808 - ], - [ - 1507235540000, - 709623808 - ], - [ - 1507235550000, - 709623808 - ], - [ - 1507235560000, - 709623808 - ], - [ - 1507235570000, - 709623808 - ], - [ - 1507235580000, - 709623808 - ], - [ - 1507235590000, - 709623808 - ], - [ - 1507235600000, - 709623808 - ], - [ - 1507235610000, - 709623808 - ], - [ - 1507235620000, - 709623808 - ], - [ - 1507235630000, - 709623808 - ], - [ - 1507235640000, - 709623808 - ], - [ - 1507235650000, - 709623808 - ], - [ - 1507235660000, - 709623808 - ], - [ - 1507235670000, - 709623808 - ], - [ - 1507235680000, - 709623808 - ], - [ - 1507235690000, - 709623808 - ], - [ - 1507235700000, - 709623808 - ] - ], - "metric": { - "app": "elasticsearch", - "description": "Total heap available to Elasticsearch running in the JVM.", - "field": "node_stats.jvm.mem.heap_max_in_bytes", - "format": "0.0 b", - "hasCalculation": false, - "isDerivative": false, - "label": "Max Heap", - "metricAgg": "max", - "title": "JVM Heap", - "units": "B" - }, - "timeRange": { - "max": 1507235712000, - "min": 1507235508000 - } + "node_latency": [{ + "bucket_size": "10 seconds", + "timeRange": { + "min": 1507235508000, + "max": 1507235712000 }, - { - "bucket_size": "10 seconds", - "data": [ - [ - 1507235520000, - 317052776 - ], - [ - 1507235530000, - 344014976 - ], - [ - 1507235540000, - 368593248 - ], - [ - 1507235550000, - 253850400 - ], - [ - 1507235560000, - 348095032 - ], - [ - 1507235570000, - 182919712 - ], - [ - 1507235580000, - 212395016 - ], - [ - 1507235590000, - 244004144 - ], - [ - 1507235600000, - 270412240 - ], - [ - 1507235610000, - 245052864 - ], - [ - 1507235620000, - 370270616 - ], - [ - 1507235630000, - 196944168 - ], - [ - 1507235640000, - 223491760 - ], - [ - 1507235650000, - 253878472 - ], - [ - 1507235660000, - 280811736 - ], - [ - 1507235670000, - 371931976 - ], - [ - 1507235680000, - 329874616 - ], - [ - 1507235690000, - 363869776 - ], - [ - 1507235700000, - 211045968 - ] - ], - "metric": { - "app": "elasticsearch", - "description": "Total heap used by Elasticsearch running in the JVM.", - "field": "node_stats.jvm.mem.heap_used_in_bytes", - "format": "0.0 b", - "hasCalculation": false, - "isDerivative": false, - "label": "Used Heap", - "metricAgg": "max", - "title": "JVM Heap", - "units": "B" - }, - "timeRange": { - "max": 1507235712000, - "min": 1507235508000 - } - } - ], - "node_latency": [ - { - "bucket_size": "10 seconds", - "data": [ - [ - 1507235520000, - null - ], - [ - 1507235530000, - 0.33333333333333337 - ], - [ - 1507235540000, - 0 - ], - [ - 1507235550000, - 0.33333333333333337 - ], - [ - 1507235560000, - 0 - ], - [ - 1507235570000, - 0.33333333333333337 - ], - [ - 1507235580000, - 0 - ], - [ - 1507235590000, - 0 - ], - [ - 1507235600000, - 0.33333333333333337 - ], - [ - 1507235610000, - 0 - ], - [ - 1507235620000, - 0 - ], - [ - 1507235630000, - 0.33333333333333337 - ], - [ - 1507235640000, - 0 - ], - [ - 1507235650000, - 0 - ], - [ - 1507235660000, - 0 - ], - [ - 1507235670000, - 0.2 - ], - [ - 1507235680000, - 0 - ], - [ - 1507235690000, - 0 - ], - [ - 1507235700000, - 0 - ] - ], - "metric": { - "app": "elasticsearch", - "description": "Average latency for searching, which is time it takes to execute searches divided by number of searches submitted. This considers primary and replica shards.", - "field": "node_stats.indices.search.query_total", - "format": "0,0.[00]", - "hasCalculation": true, - "isDerivative": false, - "label": "Search", - "metricAgg": "sum", - "title": "Latency", - "units": "ms" - }, - "timeRange": { - "max": 1507235712000, - "min": 1507235508000 - } + "metric": { + "app": "elasticsearch", + "field": "node_stats.indices.search.query_total", + "metricAgg": "sum", + "label": "Search", + "title": "Latency", + "description": "Average latency for searching, which is time it takes to execute searches divided by number of searches submitted. This considers primary and replica shards.", + "units": "ms", + "format": "0,0.[00]", + "hasCalculation": true, + "isDerivative": false }, - { - "bucket_size": "10 seconds", - "data": [ - [ - 1507235520000, - null - ], - [ - 1507235530000, - 0 - ], - [ - 1507235540000, - 0 - ], - [ - 1507235550000, - 0.888888888888889 - ], - [ - 1507235560000, - 1.1666666666666667 - ], - [ - 1507235570000, - 0 - ], - [ - 1507235580000, - 0 - ], - [ - 1507235590000, - 0 - ], - [ - 1507235600000, - 0 - ], - [ - 1507235610000, - 1.3333333333333333 - ], - [ - 1507235620000, - 1.1666666666666667 - ], - [ - 1507235630000, - 0 - ], - [ - 1507235640000, - 0 - ], - [ - 1507235650000, - 0 - ], - [ - 1507235660000, - 0 - ], - [ - 1507235670000, - 2.3333333333333335 - ], - [ - 1507235680000, - 2.8749999999999996 - ], - [ - 1507235690000, - 0 - ], - [ - 1507235700000, - 0 - ] - ], - "metric": { - "app": "elasticsearch", - "description": "Average latency for indexing documents, which is time it takes to index documents divided by number that were indexed. This considers any shard located on this node, including replicas.", - "field": "node_stats.indices.indexing.index_total", - "format": "0,0.[00]", - "hasCalculation": true, - "isDerivative": false, - "label": "Indexing", - "metricAgg": "sum", - "title": "Latency", - "units": "ms" - }, - "timeRange": { - "max": 1507235712000, - "min": 1507235508000 - } - } - ], - "node_load_average": [ - { - "bucket_size": "10 seconds", - "data": [ - [ - 1507235520000, - 2.876953125 - ], - [ - 1507235530000, - 2.66015625 - ], - [ - 1507235540000, - 2.40625 - ], - [ - 1507235550000, - 2.189453125 - ], - [ - 1507235560000, - 2.626953125 - ], - [ - 1507235570000, - 2.451171875 - ], - [ - 1507235580000, - 2.81640625 - ], - [ - 1507235590000, - 3.70703125 - ], - [ - 1507235600000, - 3.51171875 - ], - [ - 1507235610000, - 3.359375 - ], - [ - 1507235620000, - 3.076171875 - ], - [ - 1507235630000, - 2.990234375 - ], - [ - 1507235640000, - 2.904296875 - ], - [ - 1507235650000, - 2.84375 - ], - [ - 1507235660000, - 3.28125 - ], - [ - 1507235670000, - 5.30859375 - ], - [ - 1507235680000, - 7.63671875 - ], - [ - 1507235690000, - 9.4375 - ], - [ - 1507235700000, - 11.421875 - ] - ], - "metric": { - "app": "elasticsearch", - "description": "Load average over the last minute.", - "field": "node_stats.os.cpu.load_average.1m", - "format": "0,0.[00]", - "hasCalculation": false, - "isDerivative": false, - "label": "1m", - "metricAgg": "max", - "title": "System Load", - "units": "" - }, - "timeRange": { - "max": 1507235712000, - "min": 1507235508000 - } - } - ], - "node_mem": [ - { - "bucket_size": "10 seconds", - "data": [ - [ - 1507235520000, - 4797457 - ], - [ - 1507235530000, - 4797457 - ], - [ - 1507235540000, - 4797457 - ], - [ - 1507235550000, - 4797457 - ], - [ - 1507235560000, - 4823580 - ], - [ - 1507235570000, - 4823580 - ], - [ - 1507235580000, - 4823580 - ], - [ - 1507235590000, - 4823580 - ], - [ - 1507235600000, - 4823580 - ], - [ - 1507235610000, - 4838368 - ], - [ - 1507235620000, - 4741420 - ], - [ - 1507235630000, - 4741420 - ], - [ - 1507235640000, - 4741420 - ], - [ - 1507235650000, - 4741420 - ], - [ - 1507235660000, - 4741420 - ], - [ - 1507235670000, - 4757998 - ], - [ - 1507235680000, - 4787542 - ], - [ - 1507235690000, - 4787542 - ], - [ - 1507235700000, - 4787542 - ] - ], - "metric": { - "app": "elasticsearch", - "description": "Total heap memory used by Lucene for current index. This is the sum of other fields for primary and replica shards on this node.", - "field": "node_stats.indices.segments.memory_in_bytes", - "format": "0.0 b", - "hasCalculation": false, - "isDerivative": false, - "label": "Lucene Total", - "metricAgg": "max", - "title": "Index Memory", - "units": "B" - }, - "timeRange": { - "max": 1507235712000, - "min": 1507235508000 - } + "data": [] + }, { + "bucket_size": "10 seconds", + "timeRange": { + "min": 1507235508000, + "max": 1507235712000 }, - { - "bucket_size": "10 seconds", - "data": [ - [ - 1507235520000, - 3764438 - ], - [ - 1507235530000, - 3764438 - ], - [ - 1507235540000, - 3764438 - ], - [ - 1507235550000, - 3764438 - ], - [ - 1507235560000, - 3786762 - ], - [ - 1507235570000, - 3786762 - ], - [ - 1507235580000, - 3786762 - ], - [ - 1507235590000, - 3786762 - ], - [ - 1507235600000, - 3786762 - ], - [ - 1507235610000, - 3799306 - ], - [ - 1507235620000, - 3715996 - ], - [ - 1507235630000, - 3715996 - ], - [ - 1507235640000, - 3715996 - ], - [ - 1507235650000, - 3715996 - ], - [ - 1507235660000, - 3715996 - ], - [ - 1507235670000, - 3729890 - ], - [ - 1507235680000, - 3755528 - ], - [ - 1507235690000, - 3755528 - ], - [ - 1507235700000, - 3755528 - ] - ], - "metric": { - "app": "elasticsearch", - "description": "Heap memory used by Terms (e.g., text). This is a part of Lucene Total.", - "field": "node_stats.indices.segments.terms_memory_in_bytes", - "format": "0.0 b", - "hasCalculation": false, - "isDerivative": false, - "label": "Terms", - "metricAgg": "max", - "title": "Index Memory", - "units": "B" - }, - "timeRange": { - "max": 1507235712000, - "min": 1507235508000 - } + "metric": { + "app": "elasticsearch", + "field": "node_stats.indices.indexing.index_total", + "metricAgg": "sum", + "label": "Indexing", + "title": "Latency", + "description": "Average latency for indexing documents, which is time it takes to index documents divided by number that were indexed. This considers any shard located on this node, including replicas.", + "units": "ms", + "format": "0,0.[00]", + "hasCalculation": true, + "isDerivative": false }, - { - "bucket_size": "10 seconds", - "data": [ - [ - 1507235520000, - 12171 - ], - [ - 1507235530000, - 12171 - ], - [ - 1507235540000, - 12171 - ], - [ - 1507235550000, - 12171 - ], - [ - 1507235560000, - 12198 - ], - [ - 1507235570000, - 12198 - ], - [ - 1507235580000, - 12198 - ], - [ - 1507235590000, - 12198 - ], - [ - 1507235600000, - 12198 - ], - [ - 1507235610000, - 12218 - ], - [ - 1507235620000, - 12120 - ], - [ - 1507235630000, - 12120 - ], - [ - 1507235640000, - 12120 - ], - [ - 1507235650000, - 12120 - ], - [ - 1507235660000, - 12120 - ], - [ - 1507235670000, - 12140 - ], - [ - 1507235680000, - 12166 - ], - [ - 1507235690000, - 12166 - ], - [ - 1507235700000, - 12166 - ] - ], - "metric": { - "app": "elasticsearch", - "description": "Heap memory used by Points (e.g., numbers, IPs, and geo data). This is a part of Lucene Total.", - "field": "node_stats.indices.segments.points_memory_in_bytes", - "format": "0.0 b", - "hasCalculation": false, - "isDerivative": false, - "label": "Points", - "metricAgg": "max", - "title": "Index Memory", - "units": "B" - }, - "timeRange": { - "max": 1507235712000, - "min": 1507235508000 - } - } - ], - "node_segment_count": [ - { - "bucket_size": "10 seconds", - "data": [ - [ - 1507235520000, - 128 - ], - [ - 1507235530000, - 128 - ], - [ - 1507235540000, - 128 - ], - [ - 1507235550000, - 128 - ], - [ - 1507235560000, - 131 - ], - [ - 1507235570000, - 131 - ], - [ - 1507235580000, - 131 - ], - [ - 1507235590000, - 131 - ], - [ - 1507235600000, - 131 - ], - [ - 1507235610000, - 133 - ], - [ - 1507235620000, - 126 - ], - [ - 1507235630000, - 126 - ], - [ - 1507235640000, - 126 - ], - [ - 1507235650000, - 126 - ], - [ - 1507235660000, - 126 - ], - [ - 1507235670000, - 128 - ], - [ - 1507235680000, - 130 - ], - [ - 1507235690000, - 130 - ], - [ - 1507235700000, - 130 - ] - ], - "metric": { - "app": "elasticsearch", - "description": "Maximum segment count for primary and replica shards on this node.", - "field": "node_stats.indices.segments.count", - "format": "0,0.[00]", - "hasCalculation": false, - "isDerivative": false, - "label": "Segment Count", - "metricAgg": "max", - "units": "" - }, - "timeRange": { - "max": 1507235712000, - "min": 1507235508000 - } - } - ] - }, - "nodeSummary": { - "attributes": { - "ml.enabled": "true", - "ml.max_open_jobs": "10" - }, - "dataSize": 52847579, - "documents": 24830, - "freeSpace": 186755088384, - "indexCount": 20, - "isOnline": true, - "name": "whatever-01", - "nodeTypeClass": "fa-star", - "nodeTypeLabel": "Master Node", - "node_ids": [ - "jUT5KdxfRbORSCWkb5zjmA" - ], - "resolver": "jUT5KdxfRbORSCWkb5zjmA", - "status": "Online", - "totalShards": 38, - "transport_address": "127.0.0.1:9300", - "type": "master", - "usedHeap": 29 - }, - "nodes": { - "bwQWH-7IQY-mFPpfoaoFXQ": { - "indexCount": 4, - "name": "whatever-03", - "node_ids": [ - "bwQWH-7IQY-mFPpfoaoFXQ" - ], - "shardCount": 4, - "type": "node" - }, - "jUT5KdxfRbORSCWkb5zjmA": { - "indexCount": 20, - "name": "whatever-01", - "node_ids": [ - "jUT5KdxfRbORSCWkb5zjmA" - ], - "shardCount": 38, - "type": "master" - }, - "xcP6ue7eRCieNNitFTT0EA": { - "indexCount": 19, - "name": "whatever-02", - "node_ids": [ - "xcP6ue7eRCieNNitFTT0EA" - ], - "shardCount": 36, - "type": "node" - } + "data": [] + }], + "node_jvm_mem": [{ + "bucket_size": "10 seconds", + "timeRange": { + "min": 1507235508000, + "max": 1507235712000 + }, + "metric": { + "app": "elasticsearch", + "field": "node_stats.jvm.mem.heap_max_in_bytes", + "metricAgg": "max", + "label": "Max Heap", + "title": "JVM Heap", + "description": "Total heap available to Elasticsearch running in the JVM.", + "units": "B", + "format": "0.0 b", + "hasCalculation": false, + "isDerivative": false + }, + "data": [] + }, { + "bucket_size": "10 seconds", + "timeRange": { + "min": 1507235508000, + "max": 1507235712000 + }, + "metric": { + "app": "elasticsearch", + "field": "node_stats.jvm.mem.heap_used_in_bytes", + "metricAgg": "max", + "label": "Used Heap", + "title": "JVM Heap", + "description": "Total heap used by Elasticsearch running in the JVM.", + "units": "B", + "format": "0.0 b", + "hasCalculation": false, + "isDerivative": false + }, + "data": [] + }], + "node_mem": [{ + "bucket_size": "10 seconds", + "timeRange": { + "min": 1507235508000, + "max": 1507235712000 + }, + "metric": { + "app": "elasticsearch", + "field": "node_stats.indices.segments.memory_in_bytes", + "metricAgg": "max", + "label": "Lucene Total", + "title": "Index Memory", + "description": "Total heap memory used by Lucene for current index. This is the sum of other fields for primary and replica shards on this node.", + "units": "B", + "format": "0.0 b", + "hasCalculation": false, + "isDerivative": false + }, + "data": [] + }, { + "bucket_size": "10 seconds", + "timeRange": { + "min": 1507235508000, + "max": 1507235712000 + }, + "metric": { + "app": "elasticsearch", + "field": "node_stats.indices.segments.terms_memory_in_bytes", + "metricAgg": "max", + "label": "Terms", + "title": "Index Memory", + "description": "Heap memory used by Terms (e.g., text). This is a part of Lucene Total.", + "units": "B", + "format": "0.0 b", + "hasCalculation": false, + "isDerivative": false + }, + "data": [] + }, { + "bucket_size": "10 seconds", + "timeRange": { + "min": 1507235508000, + "max": 1507235712000 + }, + "metric": { + "app": "elasticsearch", + "field": "node_stats.indices.segments.points_memory_in_bytes", + "metricAgg": "max", + "label": "Points", + "title": "Index Memory", + "description": "Heap memory used by Points (e.g., numbers, IPs, and geo data). This is a part of Lucene Total.", + "units": "B", + "format": "0.0 b", + "hasCalculation": false, + "isDerivative": false + }, + "data": [] + }], + "node_cpu_metric": [{ + "bucket_size": "10 seconds", + "timeRange": { + "min": 1507235508000, + "max": 1507235712000 + }, + "metric": { + "app": "elasticsearch", + "field": "node_stats.process.cpu.percent", + "metricAgg": "max", + "label": "CPU Utilization", + "description": "Percentage of CPU usage for the Elasticsearch process.", + "units": "%", + "format": "0,0.[00]", + "hasCalculation": false, + "isDerivative": false + }, + "data": [] + }], + "node_load_average": [{ + "bucket_size": "10 seconds", + "timeRange": { + "min": 1507235508000, + "max": 1507235712000 + }, + "metric": { + "app": "elasticsearch", + "field": "node_stats.os.cpu.load_average.1m", + "metricAgg": "max", + "label": "1m", + "title": "System Load", + "description": "Load average over the last minute.", + "units": "", + "format": "0,0.[00]", + "hasCalculation": false, + "isDerivative": false + }, + "data": [] + }], + "node_segment_count": [{ + "bucket_size": "10 seconds", + "timeRange": { + "min": 1507235508000, + "max": 1507235712000 + }, + "metric": { + "app": "elasticsearch", + "field": "node_stats.indices.segments.count", + "metricAgg": "max", + "label": "Segment Count", + "description": "Maximum segment count for primary and replica shards on this node.", + "units": "", + "format": "0,0.[00]", + "hasCalculation": false, + "isDerivative": false + }, + "data": [] + }] }, + "shards": [], "shardStats": { "indices": { - ".kibana": { - "primary": 1, - "replica": 1, + "avocado-tweets-2017.09.30": { "status": "green", + "primary": 5, + "replica": 5, "unassigned": { "primary": 0, "replica": 0 } }, - ".monitoring-alerts-6": { - "primary": 1, - "replica": 1, + "avocado-tweets-2017.10.02": { "status": "green", + "primary": 5, + "replica": 5, "unassigned": { "primary": 0, "replica": 0 } }, - ".monitoring-es-6-2017.10.05": { - "primary": 1, - "replica": 0, + "avocado-tweets-2017.10.03": { + "status": "green", + "primary": 5, + "replica": 5, + "unassigned": { + "primary": 0, + "replica": 0 + } + }, + "phone-home": { "status": "yellow", + "primary": 5, + "replica": 4, "unassigned": { "primary": 0, "replica": 1 } }, - ".monitoring-kibana-6-2017.10.05": { - "primary": 1, - "replica": 0, + "watermelon-tweets-2017.10.05": { "status": "yellow", + "primary": 5, + "replica": 4, "unassigned": { "primary": 0, "replica": 1 } }, ".security-v6": { + "status": "yellow", "primary": 1, "replica": 1, - "status": "yellow", "unassigned": { "primary": 0, "replica": 1 } }, - ".triggered_watches": { + ".kibana": { + "status": "green", "primary": 1, "replica": 1, - "status": "green", "unassigned": { "primary": 0, "replica": 0 } }, - ".watcher-history-7-2017.09.29": { + ".monitoring-alerts-6": { + "status": "green", "primary": 1, "replica": 1, - "status": "green", "unassigned": { "primary": 0, "replica": 0 } }, - ".watcher-history-7-2017.09.30": { + ".monitoring-es-6-2017.10.05": { + "status": "yellow", "primary": 1, - "replica": 1, - "status": "green", + "replica": 0, "unassigned": { "primary": 0, - "replica": 0 + "replica": 1 } }, - ".watcher-history-7-2017.10.01": { + ".monitoring-kibana-6-2017.10.05": { + "status": "yellow", "primary": 1, - "replica": 1, - "status": "green", + "replica": 0, "unassigned": { "primary": 0, - "replica": 0 + "replica": 1 } }, - ".watcher-history-7-2017.10.02": { + ".triggered_watches": { + "status": "green", "primary": 1, "replica": 1, - "status": "green", "unassigned": { "primary": 0, "replica": 0 } }, - ".watcher-history-7-2017.10.03": { + ".watcher-history-7-2017.09.29": { + "status": "green", "primary": 1, "replica": 1, - "status": "green", "unassigned": { "primary": 0, "replica": 0 } }, - ".watcher-history-7-2017.10.04": { + ".watcher-history-7-2017.09.30": { + "status": "green", "primary": 1, "replica": 1, - "status": "green", "unassigned": { "primary": 0, "replica": 0 } }, - ".watcher-history-7-2017.10.05": { + ".watcher-history-7-2017.10.01": { + "status": "green", "primary": 1, "replica": 1, - "status": "green", "unassigned": { "primary": 0, "replica": 0 } }, - ".watches": { + ".watcher-history-7-2017.10.02": { + "status": "green", "primary": 1, "replica": 1, - "status": "green", "unassigned": { "primary": 0, "replica": 0 } }, - "avocado-tweets-2017.09.30": { - "primary": 5, - "replica": 5, + ".watcher-history-7-2017.10.03": { "status": "green", + "primary": 1, + "replica": 1, "unassigned": { "primary": 0, "replica": 0 } }, - "avocado-tweets-2017.10.02": { - "primary": 5, - "replica": 5, + ".watcher-history-7-2017.10.04": { "status": "green", + "primary": 1, + "replica": 1, "unassigned": { "primary": 0, "replica": 0 } }, - "avocado-tweets-2017.10.03": { - "primary": 5, - "replica": 5, + ".watcher-history-7-2017.10.05": { "status": "green", + "primary": 1, + "replica": 1, "unassigned": { "primary": 0, "replica": 0 } }, - "phone-home": { - "primary": 5, - "replica": 4, - "status": "yellow", + ".watches": { + "status": "green", + "primary": 1, + "replica": 1, "unassigned": { "primary": 0, - "replica": 1 + "replica": 0 } }, "relocation_test": { + "status": "green", "primary": 1, "replica": 0, - "status": "green", "unassigned": { "primary": 0, "replica": 0 } - }, - "watermelon-tweets-2017.10.05": { - "primary": 5, - "replica": 4, - "status": "yellow", - "unassigned": { - "primary": 0, - "replica": 1 - } } } }, - "shards": [ - { - "index": "watermelon-tweets-2017.10.05", - "node": "jUT5KdxfRbORSCWkb5zjmA", - "primary": true, - "relocating_node": null, - "shard": 4, - "state": "STARTED" - }, - { - "index": "watermelon-tweets-2017.10.05", - "node": "jUT5KdxfRbORSCWkb5zjmA", - "primary": true, - "relocating_node": null, - "shard": 1, - "state": "STARTED" - }, - { - "index": "watermelon-tweets-2017.10.05", - "node": "jUT5KdxfRbORSCWkb5zjmA", - "primary": true, - "relocating_node": null, - "shard": 2, - "state": "STARTED" - }, - { - "index": "watermelon-tweets-2017.10.05", - "node": "jUT5KdxfRbORSCWkb5zjmA", - "primary": true, - "relocating_node": null, - "shard": 3, - "state": "STARTED" - }, - { - "index": "avocado-tweets-2017.09.30", - "node": "jUT5KdxfRbORSCWkb5zjmA", - "primary": true, - "relocating_node": null, - "shard": 4, - "state": "STARTED" - }, - { - "index": "avocado-tweets-2017.09.30", - "node": "jUT5KdxfRbORSCWkb5zjmA", - "primary": true, - "relocating_node": null, - "shard": 1, - "state": "STARTED" - }, - { - "index": "avocado-tweets-2017.09.30", - "node": "jUT5KdxfRbORSCWkb5zjmA", - "primary": false, - "relocating_node": null, - "shard": 2, - "state": "STARTED" - }, - { - "index": "avocado-tweets-2017.09.30", - "node": "jUT5KdxfRbORSCWkb5zjmA", - "primary": true, - "relocating_node": null, - "shard": 3, - "state": "STARTED" - }, - { - "index": "avocado-tweets-2017.09.30", - "node": "jUT5KdxfRbORSCWkb5zjmA", - "primary": false, - "relocating_node": null, - "shard": 0, - "state": "STARTED" - }, - { - "index": "avocado-tweets-2017.10.03", - "node": "jUT5KdxfRbORSCWkb5zjmA", - "primary": true, - "relocating_node": null, - "shard": 4, - "state": "STARTED" - }, - { - "index": "avocado-tweets-2017.10.03", - "node": "jUT5KdxfRbORSCWkb5zjmA", - "primary": true, - "relocating_node": null, - "shard": 1, - "state": "STARTED" - }, - { - "index": "avocado-tweets-2017.10.03", - "node": "jUT5KdxfRbORSCWkb5zjmA", - "primary": true, - "relocating_node": null, - "shard": 2, - "state": "STARTED" - }, - { - "index": "avocado-tweets-2017.10.03", - "node": "jUT5KdxfRbORSCWkb5zjmA", - "primary": true, - "relocating_node": null, - "shard": 3, - "state": "STARTED" - }, - { - "index": "avocado-tweets-2017.10.03", - "node": "jUT5KdxfRbORSCWkb5zjmA", - "primary": true, - "relocating_node": null, - "shard": 0, - "state": "STARTED" - }, - { - "index": "phone-home", - "node": "jUT5KdxfRbORSCWkb5zjmA", - "primary": true, - "relocating_node": null, - "shard": 4, - "state": "STARTED" - }, - { - "index": "phone-home", - "node": "jUT5KdxfRbORSCWkb5zjmA", - "primary": true, - "relocating_node": null, - "shard": 2, - "state": "STARTED" - }, - { - "index": "phone-home", - "node": "jUT5KdxfRbORSCWkb5zjmA", - "primary": true, - "relocating_node": null, - "shard": 3, - "state": "STARTED" - }, - { - "index": "phone-home", - "node": "jUT5KdxfRbORSCWkb5zjmA", - "primary": true, - "relocating_node": null, - "shard": 0, - "state": "STARTED" - }, - { - "index": "avocado-tweets-2017.10.02", - "node": "jUT5KdxfRbORSCWkb5zjmA", - "primary": true, - "relocating_node": null, - "shard": 4, - "state": "STARTED" - }, - { - "index": "avocado-tweets-2017.10.02", - "node": "jUT5KdxfRbORSCWkb5zjmA", - "primary": false, - "relocating_node": null, - "shard": 1, - "state": "STARTED" - }, - { - "index": "avocado-tweets-2017.10.02", - "node": "jUT5KdxfRbORSCWkb5zjmA", - "primary": false, - "relocating_node": null, - "shard": 2, - "state": "STARTED" - }, - { - "index": "avocado-tweets-2017.10.02", - "node": "jUT5KdxfRbORSCWkb5zjmA", - "primary": true, - "relocating_node": null, - "shard": 3, - "state": "STARTED" + "nodes": { + "jUT5KdxfRbORSCWkb5zjmA": { + "shardCount": 38, + "indexCount": 20, + "name": "whatever-01", + "node_ids": ["jUT5KdxfRbORSCWkb5zjmA"], + "type": "master" }, - { - "index": "avocado-tweets-2017.10.02", - "node": "jUT5KdxfRbORSCWkb5zjmA", - "primary": true, - "relocating_node": null, - "shard": 0, - "state": "STARTED" + "xcP6ue7eRCieNNitFTT0EA": { + "shardCount": 36, + "indexCount": 19, + "name": "whatever-02", + "node_ids": ["xcP6ue7eRCieNNitFTT0EA"], + "type": "node" }, - { - "index": "relocation_test", - "node": "jUT5KdxfRbORSCWkb5zjmA", - "primary": true, - "relocating_node": "bwQWH-7IQY-mFPpfoaoFXQ", - "shard": 0, - "state": "RELOCATING" + "bwQWH-7IQY-mFPpfoaoFXQ": { + "shardCount": 4, + "indexCount": 4, + "name": "whatever-03", + "node_ids": ["bwQWH-7IQY-mFPpfoaoFXQ"], + "type": "node" } - ], + }, "stateUuid": "6wwwErXyTfaa4uHBHG5Pbg" } diff --git a/x-pack/test/api_integration/apis/monitoring/elasticsearch/node_detail.js b/x-pack/test/api_integration/apis/monitoring/elasticsearch/node_detail.js index 91b1f6d608bb10..99702267d12f4f 100644 --- a/x-pack/test/api_integration/apis/monitoring/elasticsearch/node_detail.js +++ b/x-pack/test/api_integration/apis/monitoring/elasticsearch/node_detail.js @@ -28,7 +28,7 @@ export default function ({ getService }) { it('should summarize node with metrics', async () => { const { body } = await supertest - .post('/api/monitoring/v1/clusters/YCxj-RAgSZCP6GuOQ8M1EQ/elasticsearch/nodes/jUT5KdxfRbORSCWkb5zjmA') + .post('/api/monitoring/v1/clusters/YCxj-RAgSZCP6GuOQ8M1EQ/elasticsearch/nodes/jxcP6ue7eRCieNNitFTT0EA') .set('kbn-xsrf', 'xxx') .send({ timeRange,