# Get accurate numbers for counter increases

**URL:** <https://discuss.prometheus.io/t/get-accurate-numbers-for-counter-increases/3483>\
**Category:** PromQL\
**Created:** [November 27, 2025, 11:08am UTC](https://discuss.prometheus.io/t/get-accurate-numbers-for-counter-increases/3483 "2025-11-27T11:08:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![waqarsky](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/waqarsky/32/1232_2.png) [@waqarsky](https://discuss.prometheus.io/u/waqarsky)\
**Post date:** [November 27, 2025, 11:08am UTC](https://discuss.prometheus.io/t/get-accurate-numbers-for-counter-increases/3483/1 "2025-11-27T11:08:32Z")

</div>

Assume that I have this counter, with the server scraping these metrics every 15 seconds.

`vector_component_sent_events_total{component_id=~"sink.*"}`

If the counter increases by 30. As shown in the picture below:

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/prometheus/original/2X/f/f3ce1a1bcf1b20214402a6b807c1a72593bb6242.png)

The counter increased from 36 to 66 as I expected because I sent 30 log lines to make it increase.  
Now I’m trying to get this increase, so I found a `increase` function. I used this like so:

`increase(vector_component_sent_events_total{component_id=~"sink.*"}[$__interval])`  
The min interval is set to 1m in Grafana, for the purpose of this query, it will be 1m and the increase happened during the period of `09:36:31` to `09:37:49`.  
The increase was 30 but why does the increase function show 40, I need to show an accurate number of events sent:

I am a new user so can only embed 1 image in a post. I will add a reply to this post with the result of the increase query which shows 40.

Any help will be appreciated, thanks in advance

---

<div class="post-metadata">

**Author:** ![waqarsky](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/waqarsky/32/1232_2.png) [@waqarsky](https://discuss.prometheus.io/u/waqarsky)\
**Post date:** [November 27, 2025, 11:09am UTC](https://discuss.prometheus.io/t/get-accurate-numbers-for-counter-increases/3483/2 "2025-11-27T11:09:07Z")

</div>

![image](https://europe1.discourse-cdn.com/flex017/uploads/prometheus/original/2X/6/65c43bb089e05c56c0ebe788a9597e76d05acc76.png)
