2013-12-10 05:15:57 -05:00
|
|
|
[[cluster-stats]]
|
2019-10-22 13:27:31 -04:00
|
|
|
=== Cluster stats API
|
|
|
|
++++
|
|
|
|
<titleabbrev>Cluster stats</titleabbrev>
|
|
|
|
++++
|
2013-12-10 05:15:57 -05:00
|
|
|
|
2019-08-07 10:46:39 -04:00
|
|
|
Returns cluster statistics.
|
|
|
|
|
|
|
|
|
|
|
|
[[cluster-stats-api-request]]
|
|
|
|
==== {api-request-title}
|
|
|
|
|
|
|
|
`GET /_cluster/stats` +
|
|
|
|
|
2020-01-28 10:57:45 -05:00
|
|
|
`GET /_cluster/stats/nodes/<node_filter>`
|
2019-08-07 10:46:39 -04:00
|
|
|
|
|
|
|
|
|
|
|
[[cluster-stats-api-desc]]
|
|
|
|
==== {api-description-title}
|
|
|
|
|
2020-03-10 05:03:17 -04:00
|
|
|
The Cluster Stats API allows to retrieve statistics from a cluster wide
|
|
|
|
perspective. The API returns basic index metrics (shard numbers, store size,
|
|
|
|
memory usage) and information about the current nodes that form the cluster
|
2019-08-07 10:46:39 -04:00
|
|
|
(number, roles, os, jvm versions, memory usage, cpu and installed plugins).
|
|
|
|
|
|
|
|
|
|
|
|
[[cluster-stats-api-path-params]]
|
|
|
|
==== {api-path-parms-title}
|
|
|
|
|
|
|
|
|
2020-01-28 10:57:45 -05:00
|
|
|
include::{docdir}/rest-api/common-parms.asciidoc[tag=node-filter]
|
2019-08-07 10:46:39 -04:00
|
|
|
|
|
|
|
|
|
|
|
[[cluster-stats-api-query-params]]
|
|
|
|
==== {api-query-parms-title}
|
|
|
|
|
|
|
|
include::{docdir}/rest-api/common-parms.asciidoc[tag=flat-settings]
|
|
|
|
|
2020-01-28 10:57:45 -05:00
|
|
|
include::{docdir}/rest-api/common-parms.asciidoc[tag=timeout]
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
[role="child_attributes"]
|
2020-01-28 10:57:45 -05:00
|
|
|
[[cluster-stats-api-response-body]]
|
|
|
|
==== {api-response-body-title}
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`_nodes`::
|
|
|
|
(object)
|
|
|
|
Contains statistics about the number of nodes selected by the request's
|
|
|
|
<<cluster-nodes,node filters>>.
|
|
|
|
+
|
|
|
|
.Properties of `_nodes`
|
|
|
|
[%collapsible%open]
|
|
|
|
====
|
|
|
|
`total`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(integer)
|
2020-04-06 13:10:40 -04:00
|
|
|
Total number of nodes selected by the request.
|
2020-01-28 10:57:45 -05:00
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`successful`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(integer)
|
|
|
|
Number of nodes that responded successfully to the request.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`failed`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(integer)
|
|
|
|
Number of nodes that rejected the request or failed to respond. If this value
|
|
|
|
is not `0`, a reason for the rejection or failure is included in the response.
|
2020-04-06 13:10:40 -04:00
|
|
|
====
|
2020-01-28 10:57:45 -05:00
|
|
|
|
|
|
|
`cluster_name`::
|
|
|
|
(string)
|
|
|
|
Name of the cluster, based on the <<cluster.name>> setting.
|
|
|
|
|
|
|
|
`cluster_uuid`::
|
|
|
|
(string)
|
|
|
|
Unique identifier for the cluster.
|
|
|
|
|
|
|
|
`timestamp`::
|
|
|
|
(integer)
|
|
|
|
https://en.wikipedia.org/wiki/Unix_time[Unix timestamp], in milliseconds, of
|
|
|
|
the last time the cluster statistics were refreshed.
|
|
|
|
|
|
|
|
`status`::
|
|
|
|
include::{docdir}/rest-api/common-parms.asciidoc[tag=cluster-health-status]
|
|
|
|
+
|
|
|
|
See <<cluster-health>>.
|
|
|
|
|
2020-03-10 05:03:17 -04:00
|
|
|
[[cluster-stats-api-response-body-indices]]
|
2020-04-06 13:10:40 -04:00
|
|
|
`indices`::
|
|
|
|
(object)
|
|
|
|
Contains statistics about indices with shards assigned to selected nodes.
|
|
|
|
+
|
|
|
|
.Properties of `indices`
|
|
|
|
[%collapsible%open]
|
2020-03-10 05:03:17 -04:00
|
|
|
====
|
2020-04-06 13:10:40 -04:00
|
|
|
`count`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(integer)
|
|
|
|
Total number of indices with shards assigned to selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`shards`::
|
|
|
|
(object)
|
|
|
|
Contains statistics about shards assigned to selected nodes.
|
|
|
|
+
|
|
|
|
.Properties of `shards`
|
|
|
|
[%collapsible%open]
|
|
|
|
=====
|
|
|
|
`total`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(integer)
|
|
|
|
Total number of shards assigned to selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`primaries`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(integer)
|
|
|
|
Number of primary shards assigned to selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`replication`::
|
|
|
|
(float)
|
2020-01-28 10:57:45 -05:00
|
|
|
Ratio of replica shards to primary shards across all selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`index`::
|
|
|
|
(object)
|
|
|
|
Contains statistics about shards assigned to selected nodes.
|
|
|
|
+
|
|
|
|
.Properties of `index`
|
|
|
|
[%collapsible%open]
|
|
|
|
======
|
|
|
|
`shards`::
|
|
|
|
(object)
|
|
|
|
Contains statistics about the number of shards assigned to selected nodes.
|
|
|
|
+
|
|
|
|
.Properties of `shards`
|
|
|
|
[%collapsible%open]
|
|
|
|
=======
|
|
|
|
`min`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(integer)
|
|
|
|
Minimum number of shards in an index, counting only shards assigned to
|
|
|
|
selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`max`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(integer)
|
|
|
|
Maximum number of shards in an index, counting only shards assigned to
|
|
|
|
selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`avg`::
|
|
|
|
(float)
|
2020-01-28 10:57:45 -05:00
|
|
|
Mean number of shards in an index, counting only shards assigned to
|
|
|
|
selected nodes.
|
2020-04-06 13:10:40 -04:00
|
|
|
=======
|
2020-01-28 10:57:45 -05:00
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`primaries`::
|
|
|
|
(object)
|
|
|
|
Contains statistics about the number of primary shards assigned to selected
|
|
|
|
nodes.
|
|
|
|
+
|
|
|
|
.Properties of `primaries`
|
|
|
|
[%collapsible%open]
|
|
|
|
=======
|
|
|
|
`min`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(integer)
|
|
|
|
Minimum number of primary shards in an index, counting only shards assigned
|
|
|
|
to selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`max`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(integer)
|
|
|
|
Maximum number of primary shards in an index, counting only shards assigned
|
|
|
|
to selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`avg`::
|
|
|
|
(float)
|
2020-01-28 10:57:45 -05:00
|
|
|
Mean number of primary shards in an index, counting only shards assigned to
|
|
|
|
selected nodes.
|
2020-04-06 13:10:40 -04:00
|
|
|
=======
|
2020-01-28 10:57:45 -05:00
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`replication`::
|
|
|
|
(object)
|
|
|
|
Contains statistics about the number of replication shards assigned to selected
|
|
|
|
nodes.
|
|
|
|
+
|
|
|
|
.Properties of `replication`
|
|
|
|
[%collapsible%open]
|
|
|
|
=======
|
|
|
|
`min`::
|
|
|
|
(float)
|
2020-01-28 10:57:45 -05:00
|
|
|
Minimum replication factor in an index, counting only shards assigned to
|
|
|
|
selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`max`::
|
|
|
|
(float)
|
2020-01-28 10:57:45 -05:00
|
|
|
Maximum replication factor in an index, counting only shards assigned to
|
|
|
|
selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`avg`::
|
|
|
|
(float)
|
2020-01-28 10:57:45 -05:00
|
|
|
Mean replication factor in an index, counting only shards assigned to selected
|
|
|
|
nodes.
|
2020-04-06 13:10:40 -04:00
|
|
|
=======
|
|
|
|
======
|
|
|
|
=====
|
2020-01-28 10:57:45 -05:00
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`docs`::
|
|
|
|
(object)
|
|
|
|
Contains counts for documents in selected nodes.
|
|
|
|
+
|
|
|
|
.Properties of `docs`
|
|
|
|
[%collapsible%open]
|
|
|
|
=====
|
|
|
|
`count`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(integer)
|
|
|
|
Total number of non-deleted documents across all primary shards assigned to
|
|
|
|
selected nodes.
|
|
|
|
+
|
|
|
|
This number is based on documents in Lucene segments and may include documents
|
|
|
|
from nested fields.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`deleted`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(integer)
|
|
|
|
Total number of deleted documents across all primary shards assigned to
|
|
|
|
selected nodes.
|
|
|
|
+
|
|
|
|
This number is based on documents in Lucene segments. {es} reclaims the disk
|
|
|
|
space of deleted Lucene documents when a segment is merged.
|
2020-04-06 13:10:40 -04:00
|
|
|
=====
|
2020-01-28 10:57:45 -05:00
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`store`::
|
|
|
|
(object)
|
|
|
|
Contains statistics about the size of shards assigned to selected nodes.
|
|
|
|
+
|
|
|
|
.Properties of `store`
|
|
|
|
[%collapsible%open]
|
|
|
|
=====
|
|
|
|
`size`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(<<byte-units, byte units>>)
|
|
|
|
Total size of all shards assigned to selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`size_in_bytes`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(integer)
|
|
|
|
Total size, in bytes, of all shards assigned to selected nodes.
|
2020-04-06 13:10:40 -04:00
|
|
|
=====
|
2020-01-28 10:57:45 -05:00
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`fielddata`::
|
|
|
|
(object)
|
|
|
|
Contains statistics about the field data cache of selected nodes.
|
|
|
|
+
|
|
|
|
.Properties of `fielddata`
|
|
|
|
[%collapsible%open]
|
|
|
|
=====
|
|
|
|
`memory_size`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(<<byte-units, byte units>>)
|
|
|
|
Total amount of memory used for the field data cache across all shards
|
|
|
|
assigned to selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`memory_size_in_bytes`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(integer)
|
|
|
|
Total amount, in bytes, of memory used for the field data cache across all
|
|
|
|
shards assigned to selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`evictions`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(integer)
|
|
|
|
Total number of evictions from the field data cache across all shards assigned
|
|
|
|
to selected nodes.
|
2020-04-06 13:10:40 -04:00
|
|
|
=====
|
2020-01-28 10:57:45 -05:00
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`query_cache`::
|
|
|
|
(object)
|
|
|
|
Contains statistics about the query cache of selected nodes.
|
|
|
|
+
|
|
|
|
.Properties of `query_cache`
|
|
|
|
[%collapsible%open]
|
|
|
|
=====
|
|
|
|
`memory_size`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(<<byte-units, byte units>>)
|
|
|
|
Total amount of memory used for the query cache across all shards assigned to
|
|
|
|
selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`memory_size_in_bytes`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(integer)
|
|
|
|
Total amount, in bytes, of memory used for the query cache across all shards
|
|
|
|
assigned to selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`total_count`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(integer)
|
|
|
|
Total count of hits and misses in the query cache across all shards assigned to
|
|
|
|
selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`hit_count`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(integer)
|
|
|
|
Total count of query cache hits across all shards assigned to selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`miss_count`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(integer)
|
|
|
|
Total count of query cache misses across all shards assigned to selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`cache_size`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(integer)
|
|
|
|
Total number of entries currently in the query cache across all shards assigned
|
|
|
|
to selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`cache_count`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(integer)
|
|
|
|
Total number of entries added to the query cache across all shards assigned
|
|
|
|
to selected nodes. This number includes current and evicted entries.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`evictions`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(integer)
|
|
|
|
Total number of query cache evictions across all shards assigned to selected
|
|
|
|
nodes.
|
2020-04-06 13:10:40 -04:00
|
|
|
=====
|
2020-01-28 10:57:45 -05:00
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`completion`::
|
|
|
|
(object)
|
|
|
|
Contains statistics about memory used for completion in selected nodes.
|
|
|
|
+
|
|
|
|
.Properties of `completion`
|
|
|
|
[%collapsible%open]
|
|
|
|
=====
|
|
|
|
`size`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(<<byte-units, byte units>>)
|
|
|
|
Total amount of memory used for completion across all shards assigned to
|
|
|
|
selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`size_in_bytes`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(integer)
|
|
|
|
Total amount, in bytes, of memory used for completion across all shards assigned
|
|
|
|
to selected nodes.
|
2020-04-06 13:10:40 -04:00
|
|
|
=====
|
2020-01-28 10:57:45 -05:00
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`segments`::
|
|
|
|
(object)
|
|
|
|
Contains statistics about segments in selected nodes.
|
|
|
|
+
|
|
|
|
.Properties of `segments`
|
|
|
|
[%collapsible%open]
|
|
|
|
=====
|
|
|
|
`count`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(integer)
|
|
|
|
Total number of segments across all shards assigned to selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`memory`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(<<byte-units, byte units>>)
|
|
|
|
Total amount of memory used for segments across all shards assigned to selected
|
|
|
|
nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`memory_in_bytes`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(integer)
|
|
|
|
Total amount, in bytes, of memory used for segments across all shards assigned to
|
|
|
|
selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`terms_memory`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(<<byte-units, byte units>>)
|
|
|
|
Total amount of memory used for terms across all shards assigned to selected
|
|
|
|
nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`terms_memory_in_bytes`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(integer)
|
|
|
|
Total amount, in bytes, of memory used for terms across all shards assigned to
|
|
|
|
selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`stored_fields_memory`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(<<byte-units, byte units>>)
|
|
|
|
Total amount of memory used for stored fields across all shards assigned to
|
|
|
|
selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`stored_fields_memory_in_bytes`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(integer)
|
|
|
|
Total amount, in bytes, of memory used for stored fields across all shards
|
|
|
|
assigned to selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`term_vectors_memory`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(<<byte-units, byte units>>)
|
|
|
|
Total amount of memory used for term vectors across all shards assigned to
|
|
|
|
selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`term_vectors_memory_in_bytes`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(integer)
|
|
|
|
Total amount, in bytes, of memory used for term vectors across all shards
|
|
|
|
assigned to selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`norms_memory`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(<<byte-units, byte units>>)
|
|
|
|
Total amount of memory used for normalization factors across all shards assigned
|
|
|
|
to selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`norms_memory_in_bytes`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(integer)
|
|
|
|
Total amount, in bytes, of memory used for normalization factors across all
|
|
|
|
shards assigned to selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`points_memory`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(<<byte-units, byte units>>)
|
|
|
|
Total amount of memory used for points across all shards assigned to selected
|
|
|
|
nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`points_memory_in_bytes`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(integer)
|
|
|
|
Total amount, in bytes, of memory used for points across all shards assigned to
|
|
|
|
selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`doc_values_memory`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(<<byte-units, byte units>>)
|
|
|
|
Total amount of memory used for doc values across all shards assigned to
|
|
|
|
selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`doc_values_memory_in_bytes`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(integer)
|
|
|
|
Total amount, in bytes, of memory used for doc values across all shards assigned
|
|
|
|
to selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`index_writer_memory`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(<<byte-units, byte units>>)
|
|
|
|
Total amount of memory used by all index writers across all shards assigned to
|
|
|
|
selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`index_writer_memory_in_bytes`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(integer)
|
|
|
|
Total amount, in bytes, of memory used by all index writers across all shards
|
|
|
|
assigned to selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`version_map_memory`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(<<byte-units, byte units>>)
|
|
|
|
Total amount of memory used by all version maps across all shards assigned to
|
|
|
|
selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`version_map_memory_in_bytes`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(integer)
|
|
|
|
Total amount, in bytes, of memory used by all version maps across all shards
|
|
|
|
assigned to selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`fixed_bit_set`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(<<byte-units, byte units>>)
|
|
|
|
Total amount of memory used by fixed bit sets across all shards assigned to
|
|
|
|
selected nodes.
|
|
|
|
+
|
|
|
|
Fixed bit sets are used for nested object field types and
|
|
|
|
type filters for <<parent-join,join>> fields.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`fixed_bit_set_memory_in_bytes`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(integer)
|
|
|
|
Total amount of memory, in bytes, used by fixed bit sets across all shards
|
|
|
|
assigned to selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`max_unsafe_auto_id_timestamp`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(integer)
|
|
|
|
https://en.wikipedia.org/wiki/Unix_time[Unix timestamp], in milliseconds, of
|
|
|
|
the most recently retried indexing request.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`file_sizes`::
|
2020-01-28 10:57:45 -05:00
|
|
|
(object)
|
|
|
|
This object is not populated by the cluster stats API.
|
|
|
|
+
|
|
|
|
To get information on segment files, use the <<cluster-nodes-stats,node stats
|
|
|
|
API>>.
|
2020-04-06 13:10:40 -04:00
|
|
|
=====
|
2020-03-10 05:03:17 -04:00
|
|
|
====
|
|
|
|
|
|
|
|
[[cluster-stats-api-response-body-nodes]]
|
2020-04-06 13:10:40 -04:00
|
|
|
`nodes`::
|
|
|
|
(object)
|
|
|
|
Contains statistics about nodes selected by the request's <<cluster-nodes,node
|
|
|
|
filters>>.
|
|
|
|
+
|
|
|
|
.Properties of `nodes`
|
|
|
|
[%collapsible%open]
|
2020-03-10 05:03:17 -04:00
|
|
|
====
|
2020-04-06 13:10:40 -04:00
|
|
|
`count`::
|
|
|
|
(object)
|
|
|
|
Contains counts for nodes selected by the request's <<cluster-nodes,node
|
|
|
|
filters>>.
|
|
|
|
+
|
|
|
|
.Properties of `count`
|
|
|
|
[%collapsible%open]
|
|
|
|
=====
|
|
|
|
`total`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(integer)
|
2020-04-06 13:10:40 -04:00
|
|
|
Total number of selected nodes.
|
2020-03-10 05:03:17 -04:00
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`coordinating_only`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(integer)
|
|
|
|
Number of selected nodes without a <<modules-node,role>>. These nodes are
|
|
|
|
considered <<coordinating-only-node,coordinating only>> nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`<role>`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(integer)
|
|
|
|
Number of selected nodes with the role. For a list of roles, see
|
|
|
|
<<modules-node>>.
|
2020-04-06 13:10:40 -04:00
|
|
|
=====
|
2020-03-10 05:03:17 -04:00
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`versions`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(array of strings)
|
|
|
|
Array of {es} versions used on selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`os`::
|
|
|
|
(object)
|
|
|
|
Contains statistics about the operating systems used by selected nodes.
|
|
|
|
+
|
|
|
|
.Properties of `os`
|
|
|
|
[%collapsible%open]
|
|
|
|
=====
|
|
|
|
`available_processors`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(integer)
|
|
|
|
Number of processors available to JVM across all selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`allocated_processors`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(integer)
|
|
|
|
Number of processors used to calculate thread pool size across all selected
|
|
|
|
nodes.
|
|
|
|
+
|
|
|
|
This number can be set with the `processors` setting of a node and defaults to
|
|
|
|
the number of processors reported by the OS. In both cases, this number will
|
|
|
|
never be larger than `32`.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`names`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(array of objects)
|
2020-04-06 13:10:40 -04:00
|
|
|
Contains statistics about operating systems used by selected nodes.
|
|
|
|
+
|
|
|
|
.Properties of `names`
|
|
|
|
[%collapsible%open]
|
|
|
|
======
|
|
|
|
`name`:::
|
2020-03-10 05:03:17 -04:00
|
|
|
(string)
|
|
|
|
Name of an operating system used by one or more selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`count`:::
|
2020-03-10 05:03:17 -04:00
|
|
|
(string)
|
|
|
|
Number of selected nodes using the operating system.
|
2020-04-06 13:10:40 -04:00
|
|
|
======
|
2020-03-10 05:03:17 -04:00
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`pretty_names`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(array of objects)
|
2020-04-06 13:10:40 -04:00
|
|
|
Contains statistics about operating systems used by selected nodes.
|
|
|
|
+
|
|
|
|
.Properties of `pretty_names`
|
|
|
|
[%collapsible%open]
|
|
|
|
======
|
|
|
|
`pretty_name`:::
|
2020-03-10 05:03:17 -04:00
|
|
|
(string)
|
|
|
|
Human-readable name of an operating system used by one or more selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`count`:::
|
2020-03-10 05:03:17 -04:00
|
|
|
(string)
|
|
|
|
Number of selected nodes using the operating system.
|
2020-04-06 13:10:40 -04:00
|
|
|
======
|
2020-03-10 05:03:17 -04:00
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`mem`::
|
|
|
|
(object)
|
|
|
|
Contains statistics about memory used by selected nodes.
|
|
|
|
+
|
|
|
|
.Properties of `mem`
|
|
|
|
[%collapsible%open]
|
|
|
|
======
|
|
|
|
`total`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(<<byte-units, byte units>>)
|
|
|
|
Total amount of physical memory across all selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`total_in_bytes`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(integer)
|
|
|
|
Total amount, in bytes, of physical memory across all selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`free`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(<<byte-units, byte units>>)
|
|
|
|
Amount of free physical memory across all selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`free_in_bytes`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(integer)
|
|
|
|
Amount, in bytes, of free physical memory across all selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`used`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(<<byte-units, byte units>>)
|
|
|
|
Amount of physical memory in use across all selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`used_in_bytes`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(integer)
|
|
|
|
Amount, in bytes, of physical memory in use across all selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`free_percent`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(integer)
|
|
|
|
Percentage of free physical memory across all selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`used_percent`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(integer)
|
|
|
|
Percentage of physical memory in use across all selected nodes.
|
2020-04-06 13:10:40 -04:00
|
|
|
======
|
|
|
|
=====
|
2020-03-10 05:03:17 -04:00
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`process`::
|
|
|
|
(object)
|
|
|
|
Contains statistics about processes used by selected nodes.
|
|
|
|
+
|
|
|
|
.Properties of `process`
|
|
|
|
[%collapsible%open]
|
|
|
|
=====
|
|
|
|
`cpu`::
|
|
|
|
(object)
|
|
|
|
Contains statistics about CPU used by selected nodes.
|
|
|
|
+
|
|
|
|
.Properties of `cpu`
|
|
|
|
[%collapsible%open]
|
|
|
|
======
|
|
|
|
`percent`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(integer)
|
|
|
|
Percentage of CPU used across all selected nodes. Returns `-1` if
|
|
|
|
not supported.
|
2020-04-06 13:10:40 -04:00
|
|
|
======
|
2020-03-10 05:03:17 -04:00
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`open_file_descriptors`::
|
|
|
|
(object)
|
|
|
|
Contains statistics about open file descriptors in selected nodes.
|
|
|
|
+
|
|
|
|
.Properties of `open_file_descriptors`
|
|
|
|
[%collapsible%open]
|
|
|
|
======
|
|
|
|
`min`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(integer)
|
|
|
|
Minimum number of concurrently open file descriptors across all selected nodes.
|
|
|
|
Returns `-1` if not supported.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`max`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(integer)
|
|
|
|
Maximum number of concurrently open file descriptors allowed across all selected
|
|
|
|
nodes. Returns `-1` if not supported.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`avg`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(integer)
|
|
|
|
Average number of concurrently open file descriptors. Returns `-1` if not
|
|
|
|
supported.
|
2020-04-06 13:10:40 -04:00
|
|
|
======
|
|
|
|
=====
|
2020-03-10 05:03:17 -04:00
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`jvm`::
|
|
|
|
(object)
|
|
|
|
Contains statistics about the Java Virtual Machines (JVMs) used by selected
|
|
|
|
nodes.
|
|
|
|
+
|
|
|
|
.Properties of `jvm`
|
|
|
|
[%collapsible%open]
|
|
|
|
=====
|
|
|
|
`max_uptime`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(<<time-units,time unit>>)
|
|
|
|
Uptime duration since JVM last started.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`max_uptime_in_millis`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(integer)
|
|
|
|
Uptime duration, in milliseconds, since JVM last started.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`versions`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(array of objects)
|
2020-04-06 13:10:40 -04:00
|
|
|
Contains statistics about the JVM versions used by selected nodes.
|
|
|
|
+
|
|
|
|
.Properties of `versions`
|
|
|
|
[%collapsible%open]
|
|
|
|
======
|
|
|
|
`version`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(string)
|
|
|
|
Version of JVM used by one or more selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`vm_name`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(string)
|
|
|
|
Name of the JVM.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`vm_version`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(string)
|
|
|
|
Full version number of JVM.
|
|
|
|
+
|
|
|
|
The full version number includes a plus sign (`+`) followed by the build number.
|
2019-08-07 10:46:39 -04:00
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`vm_vendor`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(string)
|
|
|
|
Vendor of the JVM.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`bundled_jdk`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(boolean)
|
|
|
|
If `true`, the JVM includes a bundled Java Development Kit (JDK).
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`using_bundled_jdk`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(boolean)
|
|
|
|
If `true`, a bundled JDK is in use by JVM.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`count`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(integer)
|
|
|
|
Total number of selected nodes using JVM.
|
2020-04-06 13:10:40 -04:00
|
|
|
======
|
2020-03-10 05:03:17 -04:00
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`mem`::
|
|
|
|
(object)
|
|
|
|
Contains statistics about memory used by selected nodes.
|
|
|
|
+
|
|
|
|
.Properties of `mem`
|
|
|
|
[%collapsible%open]
|
|
|
|
======
|
|
|
|
`heap_used`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(<<byte-units, byte units>>)
|
|
|
|
Memory currently in use by the heap across all selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`heap_used_in_bytes`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(integer)
|
|
|
|
Memory, in bytes, currently in use by the heap across all selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`heap_max`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(<<byte-units, byte units>>)
|
|
|
|
Maximum amount of memory, in bytes, available for use by the heap across all
|
|
|
|
selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`heap_max_in_bytes`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(integer)
|
|
|
|
Maximum amount of memory, in bytes, available for use by the heap across all
|
|
|
|
selected nodes.
|
2020-04-06 13:10:40 -04:00
|
|
|
======
|
2020-03-10 05:03:17 -04:00
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`threads`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(integer)
|
|
|
|
Number of active threads in use by JVM across all selected nodes.
|
2020-04-06 13:10:40 -04:00
|
|
|
=====
|
2020-03-10 05:03:17 -04:00
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`fs`::
|
|
|
|
(object)
|
|
|
|
Contains statistics about file stores by selected nodes.
|
|
|
|
+
|
|
|
|
.Properties of `fs`
|
|
|
|
[%collapsible%open]
|
|
|
|
=====
|
|
|
|
`total`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(<<byte-units, byte units>>)
|
|
|
|
Total size of all file stores across all selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`total_in_bytes`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(integer)
|
|
|
|
Total size, in bytes, of all file stores across all seleced nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`free`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(<<byte-units, byte units>>)
|
|
|
|
Amount of unallocated disk space in file stores across all selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`free_in_bytes`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(integer)
|
|
|
|
Total number of unallocated bytes in file stores across all selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`available`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(<<byte-units, byte units>>)
|
|
|
|
Total amount of disk space available to JVM in file
|
|
|
|
stores across all selected nodes.
|
|
|
|
+
|
|
|
|
Depending on OS or process-level restrictions, this amount may be less than
|
|
|
|
`nodes.fs.free`. This is the actual amount of free disk space the selected {es}
|
|
|
|
nodes can use.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`available_in_bytes`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(integer)
|
|
|
|
Total number of bytes available to JVM in file stores
|
|
|
|
across all selected nodes.
|
|
|
|
+
|
|
|
|
Depending on OS or process-level restrictions, this number may be less than
|
|
|
|
`nodes.fs.free_in_byes`. This is the actual amount of free disk space the
|
|
|
|
selected {es} nodes can use.
|
2020-04-06 13:10:40 -04:00
|
|
|
=====
|
2020-03-10 05:03:17 -04:00
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`plugins`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(array of objects)
|
2020-04-06 13:10:40 -04:00
|
|
|
Contains statistics about installed plugins and modules by selected nodes.
|
2020-03-10 05:03:17 -04:00
|
|
|
+
|
|
|
|
If no plugins or modules are installed, this array is empty.
|
2020-04-06 13:10:40 -04:00
|
|
|
+
|
|
|
|
.Properties of `plugins`
|
|
|
|
[%collapsible%open]
|
|
|
|
=====
|
2020-03-10 05:03:17 -04:00
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`<plugin>`::
|
|
|
|
(object)
|
|
|
|
Contains statistics about an installed plugin or module.
|
|
|
|
+
|
|
|
|
.Properties of `<plugin>`
|
|
|
|
[%collapsible%open]
|
|
|
|
======
|
|
|
|
`name`:::
|
2020-03-10 05:03:17 -04:00
|
|
|
(string)
|
|
|
|
Name of the {es} plugin.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`version`:::
|
2020-03-10 05:03:17 -04:00
|
|
|
(string)
|
|
|
|
{es} version for which the plugin was built.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`elasticsearch_version`:::
|
2020-03-10 05:03:17 -04:00
|
|
|
(string)
|
|
|
|
{es} version for which the plugin was built.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`java_version`:::
|
2020-03-10 05:03:17 -04:00
|
|
|
(string)
|
|
|
|
Java version for which the plugin was built.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`description`:::
|
2020-03-10 05:03:17 -04:00
|
|
|
(string)
|
|
|
|
Short description of the plugin.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`classname`:::
|
2020-03-10 05:03:17 -04:00
|
|
|
(string)
|
|
|
|
Class name used as the plugin's entry point.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`extended_plugins`:::
|
2020-03-10 05:03:17 -04:00
|
|
|
(array of strings)
|
|
|
|
An array of other plugins extended by this plugin through the Java Service
|
|
|
|
Provider Interface (SPI).
|
|
|
|
+
|
|
|
|
If this plugin extends no other plugins, this array is empty.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`has_native_controller`:::
|
2020-03-10 05:03:17 -04:00
|
|
|
(boolean)
|
|
|
|
If `true`, the plugin has a native controller process.
|
2020-04-06 13:10:40 -04:00
|
|
|
======
|
|
|
|
=====
|
2020-03-10 05:03:17 -04:00
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`network_types`::
|
|
|
|
(object)
|
|
|
|
Contains statistics about the transport and HTTP networks used by selected
|
|
|
|
nodes.
|
|
|
|
+
|
|
|
|
.Properties of `network_types`
|
|
|
|
[%collapsible%open]
|
|
|
|
=====
|
|
|
|
`transport_types`::
|
|
|
|
(object)
|
|
|
|
Contains statistics about the transport network types used by selected nodes.
|
|
|
|
+
|
|
|
|
.Properties of `transport_types`
|
|
|
|
[%collapsible%open]
|
|
|
|
======
|
|
|
|
`<transport_type>`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(integer)
|
|
|
|
Number of selected nodes using the transport type.
|
2020-04-06 13:10:40 -04:00
|
|
|
======
|
2020-03-10 05:03:17 -04:00
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`http_types`::
|
|
|
|
(object)
|
|
|
|
Contains statistics about the HTTP network types used by selected nodes.
|
|
|
|
+
|
|
|
|
.Properties of `http_types`
|
|
|
|
[%collapsible%open]
|
|
|
|
======
|
|
|
|
`<http_type>`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(integer)
|
|
|
|
Number of selected nodes using the HTTP type.
|
2020-04-06 13:10:40 -04:00
|
|
|
======
|
|
|
|
=====
|
2020-03-10 05:03:17 -04:00
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`discovery_types`::
|
|
|
|
(object)
|
|
|
|
Contains statistics about the <<modules-discovery-hosts-providers,discovery
|
|
|
|
types>> used by selected nodes.
|
|
|
|
+
|
|
|
|
.Properties of `discovery_types`
|
|
|
|
[%collapsible%open]
|
|
|
|
=====
|
|
|
|
`<discovery_type>`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(integer)
|
|
|
|
Number of selected nodes using the <<modules-discovery-hosts-providers,discovery
|
|
|
|
type>> to find other nodes.
|
2020-04-06 13:10:40 -04:00
|
|
|
=====
|
2020-03-10 05:03:17 -04:00
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`packaging_types`::
|
2020-03-10 05:03:17 -04:00
|
|
|
(array of objects)
|
2020-04-06 13:10:40 -04:00
|
|
|
Contains statistics about {es} distributions installed on selected nodes.
|
|
|
|
+
|
|
|
|
.Properties of `packaging_types`
|
|
|
|
[%collapsible%open]
|
|
|
|
=====
|
|
|
|
`flavor`:::
|
2020-03-10 05:03:17 -04:00
|
|
|
(string)
|
|
|
|
Type of {es} distribution, such as `default` or `OSS`, used by one or more
|
|
|
|
selected nodes.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`type`:::
|
2020-03-10 05:03:17 -04:00
|
|
|
(string)
|
|
|
|
File type, such as `tar` or `zip`, used for the distribution package.
|
|
|
|
|
2020-04-06 13:10:40 -04:00
|
|
|
`count`:::
|
2020-03-10 05:03:17 -04:00
|
|
|
(integer)
|
|
|
|
Number of selected nodes using the distribution flavor and file type.
|
2020-04-06 13:10:40 -04:00
|
|
|
=====
|
2020-03-10 05:03:17 -04:00
|
|
|
====
|
2019-08-07 10:46:39 -04:00
|
|
|
|
|
|
|
[[cluster-stats-api-example]]
|
|
|
|
==== {api-examples-title}
|
2013-12-10 05:15:57 -05:00
|
|
|
|
2019-09-09 13:38:14 -04:00
|
|
|
[source,console]
|
2013-12-10 05:15:57 -05:00
|
|
|
--------------------------------------------------
|
2017-08-28 05:23:09 -04:00
|
|
|
GET /_cluster/stats?human&pretty
|
2013-12-10 05:15:57 -05:00
|
|
|
--------------------------------------------------
|
2017-08-28 05:23:09 -04:00
|
|
|
// TEST[setup:twitter]
|
2013-12-10 05:15:57 -05:00
|
|
|
|
2019-08-07 10:46:39 -04:00
|
|
|
The API returns the following response:
|
|
|
|
|
2014-07-23 05:54:53 -04:00
|
|
|
["source","js",subs="attributes,callouts"]
|
2013-12-10 05:15:57 -05:00
|
|
|
--------------------------------------------------
|
|
|
|
{
|
2017-08-28 05:23:09 -04:00
|
|
|
"_nodes" : {
|
|
|
|
"total" : 1,
|
|
|
|
"successful" : 1,
|
|
|
|
"failed" : 0
|
|
|
|
},
|
2018-08-02 20:14:19 -04:00
|
|
|
"cluster_uuid": "YjAvIhsCQ9CbjWZb2qJw3Q",
|
2013-12-10 05:15:57 -05:00
|
|
|
"cluster_name": "elasticsearch",
|
2017-08-28 05:23:09 -04:00
|
|
|
"timestamp": 1459427693515,
|
2013-12-18 05:51:28 -05:00
|
|
|
"status": "green",
|
2013-12-10 05:15:57 -05:00
|
|
|
"indices": {
|
2017-08-28 05:23:09 -04:00
|
|
|
"count": 1,
|
2013-12-10 05:15:57 -05:00
|
|
|
"shards": {
|
2017-08-28 05:23:09 -04:00
|
|
|
"total": 5,
|
|
|
|
"primaries": 5,
|
2016-03-31 08:36:53 -04:00
|
|
|
"replication": 0,
|
2013-12-10 05:15:57 -05:00
|
|
|
"index": {
|
|
|
|
"shards": {
|
2016-03-31 08:36:53 -04:00
|
|
|
"min": 5,
|
|
|
|
"max": 5,
|
|
|
|
"avg": 5
|
2013-12-10 05:15:57 -05:00
|
|
|
},
|
|
|
|
"primaries": {
|
|
|
|
"min": 5,
|
|
|
|
"max": 5,
|
|
|
|
"avg": 5
|
|
|
|
},
|
|
|
|
"replication": {
|
2016-03-31 08:36:53 -04:00
|
|
|
"min": 0,
|
|
|
|
"max": 0,
|
|
|
|
"avg": 0
|
2013-12-10 05:15:57 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"docs": {
|
2016-03-31 08:36:53 -04:00
|
|
|
"count": 10,
|
2013-12-10 05:15:57 -05:00
|
|
|
"deleted": 0
|
|
|
|
},
|
|
|
|
"store": {
|
2016-03-31 08:36:53 -04:00
|
|
|
"size": "16.2kb",
|
2017-08-28 05:23:09 -04:00
|
|
|
"size_in_bytes": 16684
|
2013-12-10 05:15:57 -05:00
|
|
|
},
|
|
|
|
"fielddata": {
|
|
|
|
"memory_size": "0b",
|
|
|
|
"memory_size_in_bytes": 0,
|
|
|
|
"evictions": 0
|
|
|
|
},
|
2016-01-26 07:47:57 -05:00
|
|
|
"query_cache": {
|
2013-12-10 05:15:57 -05:00
|
|
|
"memory_size": "0b",
|
|
|
|
"memory_size_in_bytes": 0,
|
2016-03-31 08:36:53 -04:00
|
|
|
"total_count": 0,
|
|
|
|
"hit_count": 0,
|
|
|
|
"miss_count": 0,
|
|
|
|
"cache_size": 0,
|
|
|
|
"cache_count": 0,
|
2013-12-10 05:15:57 -05:00
|
|
|
"evictions": 0
|
|
|
|
},
|
|
|
|
"completion": {
|
|
|
|
"size": "0b",
|
|
|
|
"size_in_bytes": 0
|
|
|
|
},
|
|
|
|
"segments": {
|
2016-03-31 08:36:53 -04:00
|
|
|
"count": 4,
|
|
|
|
"memory": "8.6kb",
|
|
|
|
"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,
|
2017-08-28 05:23:09 -04:00
|
|
|
"points_memory" : "0b",
|
|
|
|
"points_memory_in_bytes" : 0,
|
2016-03-31 08:36:53 -04:00
|
|
|
"doc_values_memory": "744b",
|
|
|
|
"doc_values_memory_in_bytes": 744,
|
2015-08-11 17:03:34 -04:00
|
|
|
"index_writer_memory": "0b",
|
|
|
|
"index_writer_memory_in_bytes": 0,
|
|
|
|
"version_map_memory": "0b",
|
|
|
|
"version_map_memory_in_bytes": 0,
|
|
|
|
"fixed_bit_set": "0b",
|
2016-03-31 08:36:53 -04:00
|
|
|
"fixed_bit_set_memory_in_bytes": 0,
|
2017-08-28 05:23:09 -04:00
|
|
|
"max_unsafe_auto_id_timestamp" : -9223372036854775808,
|
2016-03-31 08:36:53 -04:00
|
|
|
"file_sizes": {}
|
2020-02-05 05:02:25 -05:00
|
|
|
},
|
|
|
|
"mappings": {
|
|
|
|
"field_types": []
|
|
|
|
},
|
|
|
|
"analysis": {
|
|
|
|
"char_filter_types": [],
|
|
|
|
"tokenizer_types": [],
|
|
|
|
"filter_types": [],
|
|
|
|
"analyzer_types": [],
|
|
|
|
"built_in_char_filters": [],
|
|
|
|
"built_in_tokenizers": [],
|
|
|
|
"built_in_filters": [],
|
|
|
|
"built_in_analyzers": []
|
2013-12-10 05:15:57 -05:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"nodes": {
|
|
|
|
"count": {
|
2016-03-31 08:36:53 -04:00
|
|
|
"total": 1,
|
|
|
|
"data": 1,
|
|
|
|
"coordinating_only": 0,
|
|
|
|
"master": 1,
|
2019-06-25 11:29:30 -04:00
|
|
|
"ingest": 1,
|
|
|
|
"voting_only": 0
|
2013-12-10 05:15:57 -05:00
|
|
|
},
|
|
|
|
"versions": [
|
2014-07-23 05:54:53 -04:00
|
|
|
"{version}"
|
2013-12-10 05:15:57 -05:00
|
|
|
],
|
|
|
|
"os": {
|
2016-03-31 08:36:53 -04:00
|
|
|
"available_processors": 8,
|
|
|
|
"allocated_processors": 8,
|
2015-06-22 10:36:00 -04:00
|
|
|
"names": [
|
|
|
|
{
|
|
|
|
"name": "Mac OS X",
|
|
|
|
"count": 1
|
|
|
|
}
|
2016-08-31 09:43:09 -04:00
|
|
|
],
|
2018-11-08 12:16:58 -05:00
|
|
|
"pretty_names": [
|
|
|
|
{
|
|
|
|
"pretty_name": "Mac OS X",
|
|
|
|
"count": 1
|
|
|
|
}
|
|
|
|
],
|
2016-08-31 09:43:09 -04:00
|
|
|
"mem" : {
|
|
|
|
"total" : "16gb",
|
|
|
|
"total_in_bytes" : 17179869184,
|
|
|
|
"free" : "78.1mb",
|
|
|
|
"free_in_bytes" : 81960960,
|
|
|
|
"used" : "15.9gb",
|
|
|
|
"used_in_bytes" : 17097908224,
|
|
|
|
"free_percent" : 0,
|
|
|
|
"used_percent" : 100
|
|
|
|
}
|
2013-12-10 05:15:57 -05:00
|
|
|
},
|
|
|
|
"process": {
|
|
|
|
"cpu": {
|
2016-03-31 08:36:53 -04:00
|
|
|
"percent": 9
|
2013-12-10 05:15:57 -05:00
|
|
|
},
|
2014-01-10 04:30:29 -05:00
|
|
|
"open_file_descriptors": {
|
2016-03-31 08:36:53 -04:00
|
|
|
"min": 268,
|
|
|
|
"max": 268,
|
|
|
|
"avg": 268
|
2014-01-10 04:30:29 -05:00
|
|
|
}
|
2013-12-10 05:15:57 -05:00
|
|
|
},
|
|
|
|
"jvm": {
|
2016-03-31 08:36:53 -04:00
|
|
|
"max_uptime": "13.7s",
|
|
|
|
"max_uptime_in_millis": 13737,
|
2014-12-11 07:05:35 -05:00
|
|
|
"versions": [
|
2013-12-10 05:15:57 -05:00
|
|
|
{
|
2019-03-29 08:24:52 -04:00
|
|
|
"version": "12",
|
|
|
|
"vm_name": "OpenJDK 64-Bit Server VM",
|
|
|
|
"vm_version": "12+33",
|
2016-03-31 08:36:53 -04:00
|
|
|
"vm_vendor": "Oracle Corporation",
|
2019-03-29 08:24:52 -04:00
|
|
|
"bundled_jdk": true,
|
|
|
|
"using_bundled_jdk": true,
|
2016-03-31 08:36:53 -04:00
|
|
|
"count": 1
|
2013-12-10 05:15:57 -05:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"mem": {
|
2016-03-31 08:36:53 -04:00
|
|
|
"heap_used": "57.5mb",
|
|
|
|
"heap_used_in_bytes": 60312664,
|
|
|
|
"heap_max": "989.8mb",
|
|
|
|
"heap_max_in_bytes": 1037959168
|
2013-12-10 05:15:57 -05:00
|
|
|
},
|
2016-03-31 08:36:53 -04:00
|
|
|
"threads": 90
|
|
|
|
},
|
|
|
|
"fs": {
|
|
|
|
"total": "200.6gb",
|
|
|
|
"total_in_bytes": 215429193728,
|
|
|
|
"free": "32.6gb",
|
|
|
|
"free_in_bytes": 35064553472,
|
|
|
|
"available": "32.4gb",
|
|
|
|
"available_in_bytes": 34802409472
|
2013-12-10 05:15:57 -05:00
|
|
|
},
|
|
|
|
"plugins": [
|
2017-07-28 05:27:54 -04:00
|
|
|
{
|
|
|
|
"name": "analysis-icu",
|
|
|
|
"version": "{version}",
|
|
|
|
"description": "The ICU Analysis plugin integrates Lucene ICU module into elasticsearch, adding ICU relates analysis components.",
|
|
|
|
"classname": "org.elasticsearch.plugin.analysis.icu.AnalysisICUPlugin",
|
|
|
|
"has_native_controller": false
|
|
|
|
},
|
2018-06-18 12:06:42 -04:00
|
|
|
...
|
2017-08-28 05:23:09 -04:00
|
|
|
],
|
2019-10-31 17:36:54 -04:00
|
|
|
"ingest": {
|
|
|
|
"number_of_pipelines" : 1,
|
|
|
|
"processor_stats": {
|
|
|
|
...
|
|
|
|
}
|
|
|
|
},
|
2018-12-11 04:35:58 -05:00
|
|
|
"network_types": {
|
|
|
|
...
|
|
|
|
},
|
|
|
|
"discovery_types": {
|
|
|
|
...
|
2019-04-10 13:38:44 -04:00
|
|
|
},
|
|
|
|
"packaging_types": [
|
|
|
|
{
|
|
|
|
...
|
|
|
|
}
|
|
|
|
]
|
2013-12-10 05:15:57 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
--------------------------------------------------
|
2017-08-28 05:23:09 -04:00
|
|
|
// TESTRESPONSE[s/"plugins": \[[^\]]*\]/"plugins": $body.$_path/]
|
2018-12-11 04:35:58 -05:00
|
|
|
// TESTRESPONSE[s/"network_types": \{[^\}]*\}/"network_types": $body.$_path/]
|
|
|
|
// TESTRESPONSE[s/"discovery_types": \{[^\}]*\}/"discovery_types": $body.$_path/]
|
2019-10-31 17:36:54 -04:00
|
|
|
// TESTRESPONSE[s/"processor_stats": \{[^\}]*\}/"processor_stats": $body.$_path/]
|
2019-06-25 11:29:30 -04:00
|
|
|
// TESTRESPONSE[s/"count": \{[^\}]*\}/"count": $body.$_path/]
|
2019-04-10 13:38:44 -04:00
|
|
|
// TESTRESPONSE[s/"packaging_types": \[[^\]]*\]/"packaging_types": $body.$_path/]
|
2020-02-05 05:02:25 -05:00
|
|
|
// TESTRESPONSE[s/"field_types": \[[^\]]*\]/"field_types": $body.$_path/]
|
2019-03-29 08:24:52 -04:00
|
|
|
// TESTRESPONSE[s/: true|false/: $body.$_path/]
|
2017-08-28 05:23:09 -04:00
|
|
|
// TESTRESPONSE[s/: (\-)?[0-9]+/: $body.$_path/]
|
|
|
|
// TESTRESPONSE[s/: "[^"]*"/: $body.$_path/]
|
2018-06-18 12:06:42 -04:00
|
|
|
// These replacements do a few things:
|
|
|
|
// 1. Ignore the contents of the `plugins` object because we don't know all of
|
|
|
|
// the plugins that will be in it. And because we figure folks don't need to
|
|
|
|
// see an exhaustive list anyway.
|
2019-04-10 13:38:44 -04:00
|
|
|
// 2. Similarly, ignore the contents of `network_types`, `discovery_types`, and
|
|
|
|
// `packaging_types`.
|
2019-06-25 11:29:30 -04:00
|
|
|
// 3. Ignore the contents of the (nodes) count object, as what's shown here
|
|
|
|
// depends on the license. Voting-only nodes are e.g. only shown when this
|
|
|
|
// test runs with a basic license.
|
|
|
|
// 4. All of the numbers and strings on the right hand side of *every* field in
|
2018-06-18 12:06:42 -04:00
|
|
|
// the response are ignored. So we're really only asserting things about the
|
|
|
|
// the shape of this response, not the values in it.
|
2018-08-20 09:21:31 -04:00
|
|
|
|
2018-12-21 08:52:07 -05:00
|
|
|
This API can be restricted to a subset of the nodes using <<cluster-nodes,node
|
|
|
|
filters>>:
|
2018-08-20 09:21:31 -04:00
|
|
|
|
2019-09-09 13:38:14 -04:00
|
|
|
[source,console]
|
2018-08-20 09:21:31 -04:00
|
|
|
--------------------------------------------------
|
2018-12-21 08:52:07 -05:00
|
|
|
GET /_cluster/stats/nodes/node1,node*,master:false
|
2018-08-20 09:21:31 -04:00
|
|
|
--------------------------------------------------
|