If you only need to see how a value has changed over a period, and don't have to deal with counter resets, then you can do:
foo - foo offset 24h That sounds like how you *thought* increase worked (but it doesn't, because it handles counter resets in exactly the same way as rate) On Monday, 3 April 2023 at 15:14:49 UTC+1 Johny wrote: > In terms of samples fetched from the DB which is a cost limiting factor in > our set up, what is the overhead of rate() compared to increase(). Based on > my reading so far, rate() requires all data points within the time range > interval thus it will fetch all data points from storage. On the other > hand, the increase() function would fetch the first and last data point + > penultimate data points for interpolation/extrapolation. Is it correct to > state that increase() has lower overhead than rate() in terms of samples > fetched with the overhead scaling up with time range interval? > > thanks > Johny > > -- 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 prometheus-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/771931f4-5a64-42c4-acb5-007993741fe7n%40googlegroups.com.