# False alerts with increase() when metric increases near the evaluation boundary - alert rule

**URL:** <https://discuss.prometheus.io/t/false-alerts-with-increase-when-metric-increases-near-the-evaluation-boundary-alert-rule/3451>\
**Category:** PromQL\
**Created:** [August 22, 2025, 9:02am UTC](https://discuss.prometheus.io/t/false-alerts-with-increase-when-metric-increases-near-the-evaluation-boundary-alert-rule/3451 "2025-08-22T09:02:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zapdos63](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/zapdos63/32/1201_2.png) [@Zapdos63](https://discuss.prometheus.io/u/Zapdos63)\
**Post date:** [August 22, 2025, 9:02am UTC](https://discuss.prometheus.io/t/false-alerts-with-increase-when-metric-increases-near-the-evaluation-boundary-alert-rule/3451/1 "2025-08-22T09:02:49Z")

</div>

Hello,

I’m facing an issue with an alerting rule that is giving false positives when metrics increase right near the evaluation boundary. Here are the details:

**Alerting Rule Query:**  
`(`  
`(sum(increase(metrics_listener_objects_count_total{appid=“app_id”,ListenerName=“listener_name”}[3h])) < 1)`  
`or`  
`(absent_over_time(metrics_listener_objects_count_total{appid=“app_id”,ListenerName=“listener_name”}[3h]))`  
`)`  
`and (sum(container_memory_usage_bytes{container=“processor”}) > 0)`  
`and hour() == 7 and minute() == 0`

**Setup:**

- The rule runs once daily at **3 AM EST (7 AM UTC )**.
- It checks the last **3 hours** of data.
- Alerting Criteria: _**alert only if there has been no ingestion (no increase) during that time**._

**Problem:**

- I am getting false alerts when ingestion happens **just after the evaluation boundary**.
- For example, in one case, data was ingested at **12:01** , but the alert fired anyway because `increase()` evaluated over `[12:01–03:00]` seemed to return zero.
- When I checked in Thanos directly, I could see that ingestion clearly happened in the window around **12:01 AM EST**.

**Questions** :

1. **Is this a known limitation of how `increase()` samples counters at the evaluation boundary?**
2. **Could query alignment / evaluation interval be causing this (e.g., ingestion at 12:01 but the evaluation missed it)?**
3. **How can I handle the case where a metric was absent at the start of the evaluation period but later became present(data got ingested)?**  
With `increase()`, this still shows `0`, but in reality ingestion started and I don’t want an alert.  
Is there a way I can tackle this edge case?

**Check Below screenshots for ref (Timezone is UTC) :**  
Increase function response :

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