You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a thanos setup where prometheus only has 2 days worth of data. The older data has to be accessed through a thanos endpoint and alert rules over longer time periods have to be be placed on the ruler.
The lookback period is currently hard coded to 7 days but as there is no data there is no point in going back that far. The amount of queries it has to do to cover 7 days, multiple testcases and multiple series per rule also do add up, and it might cause incorrect output as well.
I'd like to see the lookback period exposed as config option, e.g.
check "promql/series" {
lookbackPeriod = "6h"
}
How do you feel about this?
I already implemented something but the contribution guide recommended to open an issue before opening a PR :)
The text was updated successfully, but these errors were encountered:
I have a thanos setup where prometheus only has 2 days worth of data. The older data has to be accessed through a thanos endpoint and alert rules over longer time periods have to be be placed on the ruler.
The lookback period is currently hard coded to 7 days but as there is no data there is no point in going back that far. The amount of queries it has to do to cover 7 days, multiple testcases and multiple series per rule also do add up, and it might cause incorrect output as well.
I'd like to see the lookback period exposed as config option, e.g.
How do you feel about this?
I already implemented something but the contribution guide recommended to open an issue before opening a PR :)
The text was updated successfully, but these errors were encountered: