# Average count over time to render gauge visualization (RPS meter)

**URL:** https://discuss.elastic.co/t/average-count-over-time-to-render-gauge-visualization-rps-meter/296981
**Category:** Kibana
**Created:** [February 11, 2022, 1:46pm UTC](https://discuss.elastic.co/t/average-count-over-time-to-render-gauge-visualization-rps-meter/296981 "2022-02-11T13:46:51Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![slavafomin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/slavafomin/32/101724_2.png) [@slavafomin](https://discuss.elastic.co/u/slavafomin)
#### Post date: [February 11, 2022, 1:46pm UTC](https://discuss.elastic.co/t/average-count-over-time-to-render-gauge-visualization-rps-meter/296981/1 "2022-02-11T13:46:51Z")

</div>

Hello!

Consider I'm sending events to Elasticsearch for each request to my application. Now, I want to display an RPS gauge to show how many requests my application is getting per second. However, showing immediate number of requests for the last second will not be very informative and will cause the gauge to wildly fluctuate. Instead, I want to show the **average** RPS for some reasonable time ranges, e.g. last 1, 5 and 15 minutes (like _load average_ is shown in Linux `top` program).

#### 🧮 Example of the calculation:

Given: `25 000` requests were made in the last `15` minutes.

`25 000 req / (15 min × 60 sec/min) = 27.78 RPS`

* * *

How do I configure Elastic Gauge Visualization to display such average count? I can't really find any suitable controls for this in the UI.

Thank you!

---

<div class="post-metadata">

### Author: ![Tomo\_M](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@Tomo\_M](https://discuss.elastic.co/u/Tomo_M)
#### Post date: [February 12, 2022, 12:45pm UTC](https://discuss.elastic.co/t/average-count-over-time-to-render-gauge-visualization-rps-meter/296981/2 "2022-02-12T12:45:08Z")

</div>

Which gauge are you using? Aggregation-based or TSVB.  
In TSVB, there are some options to customize such things. Take care that it is NOT showing the last 15 minutes but depends on buckets created by datetime histogram aggregation.

---

<div class="post-metadata">

### Author: ![slavafomin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/slavafomin/32/101724_2.png) [@slavafomin](https://discuss.elastic.co/u/slavafomin)
#### Post date: [February 12, 2022, 6:36pm UTC](https://discuss.elastic.co/t/average-count-over-time-to-render-gauge-visualization-rps-meter/296981/3 "2022-02-12T18:36:24Z")

</div>

Actually, I was using a default Gauge visualization, didn't know about TSVB one.

The TSVB looks like a pretty powerful tool, I will try to use it for my visualization, thanks! Any specific advice you can give?

---

<div class="post-metadata">

### Author: ![Tomo\_M](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@Tomo\_M](https://discuss.elastic.co/u/Tomo_M)
#### Post date: [February 12, 2022, 7:33pm UTC](https://discuss.elastic.co/t/average-count-over-time-to-render-gauge-visualization-rps-meter/296981/4 "2022-02-12T19:33:02Z")

</div>

Hmm, nothing specific at this time. I hope it works out for you. You may create a new post and discuss when there is another problem!

---

<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: [March 12, 2022, 7:33pm UTC](https://discuss.elastic.co/t/average-count-over-time-to-render-gauge-visualization-rps-meter/296981/5 "2022-03-12T19:33:47Z")

</div>

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