How to find the increase during the day (not last 24 hours)

At 0:00 each day, entires comes in and gets processed by the job, and sometime during the day, all entries gets processed. Each time an entry gets processed, an update happens to a counter processed_entires.

I’m trying to create a dashboard which shows how many entires got processed from 0:00 TODAY to the current time. I have not had any luck on it.

increase(processed_entires_total[24h]) does not get what I want, so maybe what I need is something like increase(processed_entires_total[today]).

Hi,

Maybe probably something like this would help you. Unfortunately, PromQL does not have something like “today”, so what the solution in this link would do is to split your data by day and you could try to calculate increase on this data.


Another way I can think of is to use the relative time option in panel options to calculate increase on the series with $__range as value of lookbehind window, like:

sum(increase(my_query[$__range]))

The last point would be the number you’re looking for. The problem with that is that it would work only for the last point, so you can’t see historical data.