# Clarification of the query\_total metric in the cluster nodes stats api

**URL:** <https://discuss.elastic.co/t/clarification-of-the-query-total-metric-in-the-cluster-nodes-stats-api/10529>\
**Category:** Elasticsearch\
**Created:** [January 28, 2013, 6:35pm UTC](https://discuss.elastic.co/t/clarification-of-the-query-total-metric-in-the-cluster-nodes-stats-api/10529 "2013-01-28T18:35:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![colinsurprenant](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/colinsurprenant/32/14776_2.png) [@colinsurprenant](https://discuss.elastic.co/u/colinsurprenant)\
**Post date:** [January 28, 2013, 6:35pm UTC](https://discuss.elastic.co/t/clarification-of-the-query-total-metric-in-the-cluster-nodes-stats-api/10529/1 "2013-01-28T18:35:37Z")

</div>

Hi,

In \_cluster/nodes/stats what exactly does the  
nodes/[node]/indices/search/query\_total metric represent?

Is it:

- the elasticsearch queries count as submitted by the http or java  
interface for that node?
- the queries count for each shard on that node, for example, if one ES  
search query hits 4 shards on that node, the query\_total will be  
incremented by 4

Thanks

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group, send email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![radu\_gheorghe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/radu_gheorghe/32/556_2.png) [@radu\_gheorghe](https://discuss.elastic.co/u/radu_gheorghe)\
**Post date:** [January 29, 2013, 7:35am UTC](https://discuss.elastic.co/t/clarification-of-the-query-total-metric-in-the-cluster-nodes-stats-api/10529/2 "2013-01-29T07:35:10Z")

</div>

Hi Colin,

It's the queries count per shard, like in the example you gave.

## Best regards, Radu

[http://sematext.com/](http://sematext.com/) -- Elasticsearch -- Solr -- Lucene

On Mon, Jan 28, 2013 at 8:35 PM, Colin Surprenant \<  
[colin.surprenant@gmail.com](mailto:colin.surprenant@gmail.com)\> wrote:

> Hi,
> 
> In \_cluster/nodes/stats what exactly does the  
> nodes/[node]/indices/search/query\_total metric represent?
> 
> Is it:
> 
> - the elasticsearch queries count as submitted by the http or java  
> interface for that node?
> - the queries count for each shard on that node, for example, if one ES  
> search query hits 4 shards on that node, the query\_total will be  
> incremented by 4
> 
> Thanks

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![colinsurprenant](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/colinsurprenant/32/14776_2.png) [@colinsurprenant](https://discuss.elastic.co/u/colinsurprenant)\
**Post date:** [January 30, 2013, 5:07pm UTC](https://discuss.elastic.co/t/clarification-of-the-query-total-metric-in-the-cluster-nodes-stats-api/10529/3 "2013-01-30T17:07:01Z")

</div>

Thanks Radu. Right. So the "correct" definition would be query\_total is the  
total number of queries across all lucene instances of a node.

Colin

On Tuesday, January 29, 2013 2:35:10 AM UTC-5, Radu Gheorghe wrote:

> Hi Colin,
> 
> It's the queries count per shard, like in the example you gave.
> 
> ## Best regards, Radu
> 
> [http://sematext.com/](http://sematext.com/) -- Elasticsearch -- Solr -- Lucene
> 
> On Mon, Jan 28, 2013 at 8:35 PM, Colin Surprenant \<[colin.su...@gmail.com](mailto:colin.su...@gmail.com)\<javascript:\>
> 
> > wrote:
> 
> > Hi,
> > 
> > In \_cluster/nodes/stats what exactly does the  
> > nodes/[node]/indices/search/query\_total metric represent?
> > 
> > Is it:
> > 
> > - the elasticsearch queries count as submitted by the http or java  
> > interface for that node?
> > - the queries count for each shard on that node, for example, if one ES  
> > search query hits 4 shards on that node, the query\_total will be  
> > incremented by 4
> > 
> > Thanks

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 2:53am UTC](https://discuss.elastic.co/t/clarification-of-the-query-total-metric-in-the-cluster-nodes-stats-api/10529/4 "2017-07-06T02:53:53Z")

</div>


