mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-10 15:14:09 +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,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 a new issue