Description
Is your feature request related to a problem? Please describe.
When a Ruler recording rule is executed for an interval say 5min, execution time (10:07) for the query is picked up randomly. The interval (10:02 - 10:07) is based on the execution time and not aligned to wall clock.
It is very important for recorded rules to produce output aligned to wall clock, based on data from an aligned interval. This is the standard expectation and it also produces metrics produced by all rules to have standard interval boundaries (unlike the current implementation, where each recorded metric will have its own interval start/end time.
Describe the solution you'd like
The expectation is the interval is independent of query execution time and always aligned to wall clock. Eg
query for interval 10:00 - 10:05 with recorded time of 10:05. It can execute anytime between 10:05 and 10:10
query for interval 10:05 - 10:10 with recorded time of 10:10. It can execute anytime between 10:10 and 10:15
Describe alternatives you've considered
Willing to consider any alternative. This seems to be fundamental feature, that cannot be worked around.
Additional context
Add any other context or screenshots about the feature request here.