change when week starts / change aligment?

18 views
Skip to first unread message

Henrik Eickmeyer

unread,
Feb 1, 2022, 2:46:51 PM2/1/22
to Prometheus Users
is there any way to change the week aligment?

increase(EXAMPLE[7d])[90d:1w]

gets me data at @1643241600 and @1642636800 and so on (which is "Thu Jan 27 2022" and "Thu Jan 20 2022"). is there a way that the data begins for example at  1642982400  (Mon Jan 24 2022) and goes from there weekly?

Stuart Clark

unread,
Feb 2, 2022, 3:30:39 AM2/2/22
to Henrik Eickmeyer, Prometheus Users

Yes. You need to ensure that you are sending the correct date/time point/range for the query, which defaults to "now" if not set at all.

-- 
Stuart Clark
Reply all
Reply to author
Forward
0 new messages