The node statistic call API is used to collect real-time behaviors of your node, for example memory usage, threads usage, number of index, search, and so on.
For getting nodes statistic, we will perform the steps given as follows:
To retrieve the node statistic, the HTTP method is
GET
and the curl command is as follows:curl -XGET 'http://localhost:9200/_nodes/stats?all=true' curl -XGET 'http://localhost:9200/_nodes/<nodeId1>,<nodeId2>/stats?all=true'
The result will be a long description of all the node statistics. The result is composed of the following:
A header describing the
cluster name
and anodes
section:{ "cluster_name": "elasticsearch", "nodes": { "pyGyXwh1ScqmnDw5etNS0w": {
Node filesystem statistics:
"fs": { "data": [ { "available": "24.6gb",… "dev": "/dev/sda1",.. "disk_read_size": "1gb",.. "disk_reads...