app/vmselect/promql: allow adjusting window for default rollup function

Default rollup function is `last_over_time`. It must support adjusting
the provided window in order to prevent from gaps on the graph
for window values smaller than scrape interval.

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/134
This commit is contained in:
Aliaksandr Valialkin 2019-07-31 00:42:07 +03:00
parent c901a6472f
commit b9a16b93e7

View File

@ -54,6 +54,9 @@ var rollupFuncs = map[string]newRollupFunc{
}
var rollupFuncsMayAdjustWindow = map[string]bool{
"default_rollup": true,
"first_over_time": true,
"last_over_time": true,
"deriv": true,
"deriv_fast": true,
"irate": true,