I have trying to monitor how different configuration variables and hardware change the performance of a Elasticsearch cluster. I have read documentation about the indeces stats. If I understand the documentation correctly, I can obtain some performance metrics from this REST API call
curl -XGET http://localhost:9200/_stats?pretty
If I'm correct about this JSON output , the indexing and search keys:
- _all.total.indexing.index_total is the total index request that the system has processed from the last call to the upper REST point.
- _all.total.indexing.index_time_in_millis is the total time in milliseconds the system spends indexing the data
With all.total.indexing.index_time_in_millis/_all.total.indexing.index_total I can obtain the mean index time per requests.
Those stats are reset each time the end point curl -XGET http://localhost:9200/_stats?pretty is called?