# Calculate increase in queue size

**URL:** <https://discuss.elastic.co/t/calculate-increase-in-queue-size/239291>\
**Category:** Elasticsearch\
**Created:** [June 30, 2020, 12:08pm UTC](https://discuss.elastic.co/t/calculate-increase-in-queue-size/239291 "2020-06-30T12:08:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![spike83](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spike83/32/47036_2.png) [@spike83](https://discuss.elastic.co/u/spike83)\
**Post date:** [June 30, 2020, 12:08pm UTC](https://discuss.elastic.co/t/calculate-increase-in-queue-size/239291/1 "2020-06-30T12:08:33Z")

</div>

Hi,

Im monitoring activemq queue data, I would like to have a graph to show may many messages were enqueued since the last check.

I can capture the enqueued number which will always be increasing , but is it possible to take the last doc indexed and calculate the difference and store this number, this way I can then look at trends around number of messages enqueued in a given period.

---

<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 28, 2020, 12:08pm UTC](https://discuss.elastic.co/t/calculate-increase-in-queue-size/239291/2 "2020-07-28T12:08:37Z")

</div>

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