Get cluster statistics
GET
/_cluster/stats 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
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:
}