Add up-to-date example of cluster stats API output

This commit is contained in:
Daniel Mitterdorfer 2016-03-31 14:36:53 +02:00
parent 637da86e5f
commit 930ce1bfec
1 changed files with 72 additions and 89 deletions

View File

@ -15,20 +15,20 @@ Will return, for example:
["source","js",subs="attributes,callouts"] ["source","js",subs="attributes,callouts"]
-------------------------------------------------- --------------------------------------------------
{ {
"timestamp": 1439326129256, "timestamp": 1459427693515,
"cluster_name": "elasticsearch", "cluster_name": "elasticsearch",
"status": "green", "status": "green",
"indices": { "indices": {
"count": 3, "count": 2,
"shards": { "shards": {
"total": 35, "total": 10,
"primaries": 15, "primaries": 10,
"replication": 1.333333333333333, "replication": 0,
"index": { "index": {
"shards": { "shards": {
"min": 10, "min": 5,
"max": 15, "max": 5,
"avg": 11.66666666666666 "avg": 5
}, },
"primaries": { "primaries": {
"min": 5, "min": 5,
@ -36,19 +36,19 @@ Will return, for example:
"avg": 5 "avg": 5
}, },
"replication": { "replication": {
"min": 1, "min": 0,
"max": 2, "max": 0,
"avg": 1.3333333333333333 "avg": 0
} }
} }
}, },
"docs": { "docs": {
"count": 2, "count": 10,
"deleted": 0 "deleted": 0
}, },
"store": { "store": {
"size": "5.6kb", "size": "16.2kb",
"size_in_bytes": 5770, "size_in_bytes": 16684,
"throttle_time": "0s", "throttle_time": "0s",
"throttle_time_in_millis": 0 "throttle_time_in_millis": 0
}, },
@ -60,6 +60,11 @@ Will return, for example:
"query_cache": { "query_cache": {
"memory_size": "0b", "memory_size": "0b",
"memory_size_in_bytes": 0, "memory_size_in_bytes": 0,
"total_count": 0,
"hit_count": 0,
"miss_count": 0,
"cache_size": 0,
"cache_count": 0,
"evictions": 0 "evictions": 0
}, },
"completion": { "completion": {
@ -67,121 +72,99 @@ Will return, for example:
"size_in_bytes": 0 "size_in_bytes": 0
}, },
"segments": { "segments": {
"count": 2, "count": 4,
"memory": "6.4kb", "memory": "8.6kb",
"memory_in_bytes": 6596, "memory_in_bytes": 8898,
"terms_memory": "6.3kb",
"terms_memory_in_bytes": 6522,
"stored_fields_memory": "1.2kb",
"stored_fields_memory_in_bytes": 1248,
"term_vectors_memory": "0b",
"term_vectors_memory_in_bytes": 0,
"norms_memory": "384b",
"norms_memory_in_bytes": 384,
"doc_values_memory": "744b",
"doc_values_memory_in_bytes": 744,
"index_writer_memory": "0b", "index_writer_memory": "0b",
"index_writer_memory_in_bytes": 0, "index_writer_memory_in_bytes": 0,
"index_writer_max_memory": "275.7mb", "index_writer_max_memory": "2.5gb",
"index_writer_max_memory_in_bytes": 289194639, "index_writer_max_memory_in_bytes": 2684354560,
"version_map_memory": "0b", "version_map_memory": "0b",
"version_map_memory_in_bytes": 0, "version_map_memory_in_bytes": 0,
"fixed_bit_set": "0b", "fixed_bit_set": "0b",
"fixed_bit_set_memory_in_bytes": 0 "fixed_bit_set_memory_in_bytes": 0,
"file_sizes": {}
}, },
"percolate": { "percolator": {
"total": 0, "num_queries": 0
"get_time": "0s",
"time_in_millis": 0,
"current": 0,
"memory_size_in_bytes": -1,
"memory_size": "-1b",
"queries": 0
} }
}, },
"nodes": { "nodes": {
"count": { "count": {
"total": 2, "total": 1,
"master": 2, "data": 1,
"data": 2, "coordinating_only": 0,
"ingest": 2, "master": 1,
"coordinating_only": 0 "ingest": 1
}, },
"versions": [ "versions": [
"{version}" "{version}"
], ],
"os": { "os": {
"available_processors": 4, "available_processors": 8,
"mem": { "allocated_processors": 8,
"total": "8gb",
"total_in_bytes": 8589934592
},
"names": [ "names": [
{ {
"name": "Mac OS X", "name": "Mac OS X",
"count": 1 "count": 1
} }
],
"cpu": [
{
"vendor": "Intel",
"model": "MacBookAir5,2",
"mhz": 2000,
"total_cores": 4,
"total_sockets": 4,
"cores_per_socket": 16,
"cache_size": "256b",
"cache_size_in_bytes": 256,
"count": 1
}
] ]
}, },
"process": { "process": {
"cpu": { "cpu": {
"percent": 3 "percent": 9
}, },
"open_file_descriptors": { "open_file_descriptors": {
"min": 200, "min": 268,
"max": 346, "max": 268,
"avg": 273 "avg": 268
} }
}, },
"jvm": { "jvm": {
"max_uptime": "24s", "max_uptime": "13.7s",
"max_uptime_in_millis": 24054, "max_uptime_in_millis": 13737,
"versions": [ "versions": [
{ {
"version": "1.6.0_45", "version": "1.8.0_74",
"vm_name": "Java HotSpot(TM) 64-Bit Server VM", "vm_name": "Java HotSpot(TM) 64-Bit Server VM",
"vm_version": "20.45-b01-451", "vm_version": "25.74-b02",
"vm_vendor": "Apple Inc.", "vm_vendor": "Oracle Corporation",
"count": 2 "count": 1
} }
], ],
"mem": { "mem": {
"heap_used": "38.3mb", "heap_used": "57.5mb",
"heap_used_in_bytes": 40237120, "heap_used_in_bytes": 60312664,
"heap_max": "1.9gb", "heap_max": "989.8mb",
"heap_max_in_bytes": 2130051072 "heap_max_in_bytes": 1037959168
}, },
"threads": 89 "threads": 90
}, },
"fs": "fs": {
{ "total": "200.6gb",
"total": "232.9gb", "total_in_bytes": 215429193728,
"total_in_bytes": 250140434432, "free": "32.6gb",
"free": "31.3gb", "free_in_bytes": 35064553472,
"free_in_bytes": 33705881600, "available": "32.4gb",
"available": "31.1gb", "available_in_bytes": 34802409472
"available_in_bytes": 33443737600,
"disk_reads": 21202753,
"disk_writes": 27028840,
"disk_io_op": 48231593,
"disk_read_size": "528gb",
"disk_read_size_in_bytes": 566980806656,
"disk_write_size": "617.9gb",
"disk_write_size_in_bytes": 663525366784,
"disk_io_size": "1145.9gb",
"disk_io_size_in_bytes": 1230506173440
}, },
"plugins": [ "plugins": [
// all plugins installed on nodes // all plugins installed on nodes
{ {
"name": "inquisitor", "name": "analysis-stempel",
"description": "", "version": "{version}",
"url": "/_plugin/inquisitor/", "description": "The Stempel (Polish) Analysis plugin integrates Lucene stempel (polish) analysis module into elasticsearch.",
"jvm": false, "classname": "org.elasticsearch.plugin.analysis.stempel.AnalysisStempelPlugin"
"site": true
} }
] ]
} }