The node statistics call API is used to collect real-time metrics of your node, such as memory usage, threads usage, the number of indices, and searches.
Getting node statistics via the API
Getting ready
You will need an up-and-running Elasticsearch installation – similar to the one that we described in the Downloading and installing Elasticsearch recipe in Chapter 1, Getting Started.
In order to execute the commands, any HTTP client can be used, such as curl (https://curl.haxx.se/) or postman (https://www.getpostman.com/). You can use the Kibana console as it provides code completion and better character escaping for Elasticsearch.