You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Nawab Zada Asad Iqbal <kh...@gmail.com> on 2018/03/29 03:27:41 UTC
Solr Metrics mismatch the query logs
Hi,
I gather solr metrics from the following URL for my request handler.
[solr-host]/solr/core1/admin/mbeans?stats=true&wt=json
Specifically, there is a requests value in the stats map for each handler.
I use this value to calculate the requests which arrived between two
successive intervals when I retrieved the stats.
What i want to know is:
How is this number updated? At the start of the query handler execution or
near the end? I tried to grep the code but couldn't find the place.
How does this number match with queryStartTime and queryEndTime which
appear in INFO log for each query.
I have noticed that sometimes there is a big spike in the numbers coming
from the metrics api (requests count), while the count of the queries in
the logs don't jump as drastically.
PS: I am using solr4 hence the metrics api url may not work for recent
versions.
Thanks!
Nawab