# Misunderstanding of metrics

**URL:** <https://discuss.elastic.co/t/misunderstanding-of-metrics/132857>\
**Category:** Elasticsearch\
**Tags:** rally\
**Created:** [May 22, 2018, 5:04pm UTC](https://discuss.elastic.co/t/misunderstanding-of-metrics/132857 "2018-05-22T17:04:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SergeiPetrov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sergeipetrov/32/27127_2.png) [@SergeiPetrov](https://discuss.elastic.co/u/SergeiPetrov)\
**Post date:** [May 22, 2018, 5:04pm UTC](https://discuss.elastic.co/t/misunderstanding-of-metrics/132857/1 "2018-05-22T17:04:18Z")

</div>

Hi,

On the previous week I wrote to you about the problem with custom plugin. ([ES custom plugin testing](https://discuss.elastic.co/t/es-custom-plugin-testing/131989/3)).

As you suggested me, I created a separate ES cluster with my plugin and test data. Then I created a custom track for Rally and ran it. After a long time, I finally got the test result. But I don't understand why I got so huge numbers... For example: 99th percentile latency: 41007.5 ms? and the 99th percentile service\_time: 56.3849 ms? Could you give more information about this metrics? Because I don't think that my TCP connection takes 41 secnods.

Some details about the query which I am testing: I create a query which used my plugin. Inside my plugin I use a TCP connection to the application and get the information which I need to the ES. If I executed the query from Kibana, I got the 5073 ms. It is time taken to receive the response. This time doesn't look like one of the metrics. Where I can get the time which I spend to receive the response from the ES similar to the Kibana?

Maybe I missed something, so could you explain to me why these numbers are so different? or why this could happen?

---

<div class="post-metadata">

**Author:** ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)\
**Post date:** [May 23, 2018, 4:40am UTC](https://discuss.elastic.co/t/misunderstanding-of-metrics/132857/2 "2018-05-23T04:40:12Z")

</div>

Hi,

you can find the answer in the FAQ: [What does latency and service\_time mean?](http://esrally.readthedocs.io/en/stable/faq.html#what-does-latency-and-service-time-mean-and-how-do-they-related-to-the-took-field-that-elasticsearch-returns)

I hope that helps.

Daniel

---

<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:** [June 20, 2018, 4:40am UTC](https://discuss.elastic.co/t/misunderstanding-of-metrics/132857/3 "2018-06-20T04:40:14Z")

</div>

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