How to compute average search request cost time through indices stats api

i call the /{index}/_stats/ interface two times, and try to compute average search cost time use:

(total.search.query_time_in_millis 2 - total.search.query_time_in_millis 1)/ ( total.search.query_total 2 - total.search.query_total 1)
+
(total.search.fetch_time_in_millis 2 - total.search.fetch_time_in_millis 1)/ ( total.search.fetch_total 2 - total.search.fetch_total 1)

however find query + fetch is only 0.1ms, this is much smaller than the Request Time in Kibana (6ms) which i think is right.

how can i compute average search request cost time through indices stats api ?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.