On Fri, 23 Jul 2021 at 09:04, Marek Skalicky <[email protected]> wrote:

> Hi,
> I'm running prometheus with lookback-delta=9m and scraping a metric every
> 5 minutes. I've seen issue when evaluating
> 'increase(ifHCInOctets{network_key="xxx"}[10m])/2' in recording rule.
> I've reported that as a bug in
> https://github.com/prometheus/prometheus/issues/9092, but I was told the
> lookback-delta should be 15m so it's an issue of configuration.
>
> But when I do the same query in grafana it shows correctly. So does the
> lookback-delta have special meaning for recording rules?
> My understanding was that the lookback delta is used per individual data
> points, so the fact that the query/rule has range vector 10m has nothing to
> do with the lookback delta. I have also recording rules doing "the same"
> with 1h and 24h range vector and those work fine.
>
> Could anyone please explain why I should use 15m lookback-delta?
>

You shouldn't,
https://www.robustperception.io/what-range-should-i-use-with-rate describes
what's going on.


>
> Many thanks,
> Marek Skalicky
>
> --
> You received this message because you are subscribed to the Google Groups
> "Prometheus Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/prometheus-users/c73ad64d-0958-442d-88c5-2d5a6f2a738an%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-users/c73ad64d-0958-442d-88c5-2d5a6f2a738an%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Brian Brazil
www.robustperception.io

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/CAHJKeLq4%3DTe4Wi47vPRYn-nau60M_NFhT1FR1uBEjXgK_Tka8g%40mail.gmail.com.

Reply via email to