Get cluster statistics
GET
/_cluster/stats/nodes/{node_id} Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins).
Required authorization
- Cluster privileges:
monitor
Parameters
path Path Parameters
| Name | Type |
|---|---|
node_id
required
Comma-separated list of node filters used to limit returned information. Defaults to all nodes in the cluster. | type TypesNodeIds = type TypesNodeId = string | type TypesNodeId = string[] |
query Query Parameters
| Name | Type |
|---|---|
include_remotes Include remote cluster data into the response | boolean |
timeout Period to wait for each node to respond.
If a node does not respond before its timeout expires, the response does not include its stats.
However, timed out nodes are included in the response’s | type TypesDuration = string | "-1" | "0" |
Responses
200 application/json
type ClusterStatsStatsResponseBase = interface NodesTypesNodesResponseBase {
_nodes?:TypesNodeStatistics ;
} & {
cluster_name:TypesName ;
cluster_uuid:TypesUuid ;
indices:ClusterStatsClusterIndices ;
nodes:ClusterStatsClusterNodes ;
repositories: { };
snapshots:ClusterStatsClusterSnapshotStats ;
status?:TypesHealthStatus ;
timestamp: number;
ccs:ClusterStatsCCSStats ;
}
_nodes?:
} & {
cluster_name:
cluster_uuid:
indices:
nodes:
repositories: { };
snapshots:
status?:
timestamp: number;
ccs:
}