mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-03-21 15:45:01 +00:00
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:
parent
10f5a26bec
commit
4aaa5c2efc
1 changed files with 7 additions and 4 deletions
|
@ -54,6 +54,9 @@ var rollupFuncs = map[string]newRollupFunc{
|
||||||
}
|
}
|
||||||
|
|
||||||
var rollupFuncsMayAdjustWindow = map[string]bool{
|
var rollupFuncsMayAdjustWindow = map[string]bool{
|
||||||
|
"default_rollup": true,
|
||||||
|
"first_over_time": true,
|
||||||
|
"last_over_time": true,
|
||||||
"deriv": true,
|
"deriv": true,
|
||||||
"deriv_fast": true,
|
"deriv_fast": true,
|
||||||
"irate": true,
|
"irate": true,
|
||||||
|
|
Loading…
Reference in a new issue