mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-15 00:13:30 +01: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
c901a6472f
commit
b9a16b93e7
@ -54,10 +54,13 @@ var rollupFuncs = map[string]newRollupFunc{
|
|||||||
}
|
}
|
||||||
|
|
||||||
var rollupFuncsMayAdjustWindow = map[string]bool{
|
var rollupFuncsMayAdjustWindow = map[string]bool{
|
||||||
"deriv": true,
|
"default_rollup": true,
|
||||||
"deriv_fast": true,
|
"first_over_time": true,
|
||||||
"irate": true,
|
"last_over_time": true,
|
||||||
"rate": true,
|
"deriv": true,
|
||||||
|
"deriv_fast": true,
|
||||||
|
"irate": true,
|
||||||
|
"rate": true,
|
||||||
}
|
}
|
||||||
|
|
||||||
var rollupFuncsRemoveCounterResets = map[string]bool{
|
var rollupFuncsRemoveCounterResets = map[string]bool{
|
||||||
|
Loading…
Reference in New Issue
Block a user