ElasticSearch `Search` Usage Metrics and total queries count

We have a use-case which requires us to maintain count of total search queries. We need to do this on an index or index-alias basis and for this we are passing in a custom stats-group (as part of the _search request). Now, the current problem is on how we can robustly get queries count. We tried using the following metrics via stats-endpoint - fetch_total and query_total . Query_total metric seems to be dependent on shard count and hence seems unviable for usage. So, posting this question to hear your recommendations.

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