# How to calculate the query per second from the existing metrics?

**URL:** https://discuss.elastic.co/t/how-to-calculate-the-query-per-second-from-the-existing-metrics/255775
**Category:** Beats
**Tags:** metricbeat
**Created:** [November 18, 2020, 2:39am UTC](https://discuss.elastic.co/t/how-to-calculate-the-query-per-second-from-the-existing-metrics/255775 "2020-11-18T02:39:30Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Izek\_Chen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/izek_chen/32/78257_2.png) [@Izek\_Chen](https://discuss.elastic.co/u/Izek_Chen)
#### Post date: [November 18, 2020, 2:39am UTC](https://discuss.elastic.co/t/how-to-calculate-the-query-per-second-from-the-existing-metrics/255775/1 "2020-11-18T02:39:30Z")

</div>

As per title, I check the export field document and seems like the "[mongodb.collstats.queries.time.us](http://mongodb.collstats.queries.time.us)" is the right one.  
the problem I see is that since the metrics gathered are cumulative those values do not represent individual times, that's why my graph looks incremental

Do I need to do the dividing like below?

"[mongodb.collstats.queries.time.us](http://mongodb.collstats.queries.time.us)" / "mongodb.collstats.queries.count"

---

<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: [December 16, 2020, 4:39am UTC](https://discuss.elastic.co/t/how-to-calculate-the-query-per-second-from-the-existing-metrics/255775/2 "2020-12-16T04:39:31Z")

</div>

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