Slackbot
02/21/2023, 9:08 PMBen Krug
02/21/2023, 9:16 PMSean F
02/21/2023, 9:23 PMSean F
02/21/2023, 9:28 PMSergio Ferragut
02/22/2023, 12:12 AMSELECT ...
FROM ...
WHERE ... AND __time < TIME_FLOOR(CURRENT_TIMESTAMP, 'PT1M')
which would only query minutes that have already passed. One issue will still be that event messages could arrive a bit after the minute has passed, so you will likely still get a bit of a jitter on the rollup result while late events still arrive. But it would help reduce the drop off effect. In order to circumvent that even further you could use time shift to make it only return rows that are a full minute past with:
WHERE ... AND __time < TIME_SHIFT(TIME_FLOOR(CURRENT_TIMESTAMP, 'PT1M'), 'PT1M', -1)Paul Rogers
02/22/2023, 12:15 AMSean F
02/22/2023, 2:50 PM