app/vmselect/promql: keep metric name after applying more functions, which dont change time series meaning

Functions are:

* keep_last_value
* keep_next_value
* interpolate
* running_min
* running_max
* running_avg
* range_min
* range_max
* range_avg
* range_first
* range_last
* range_quantile
* smooth_exponential

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/674
This commit is contained in:
Aliaksandr Valialkin 2020-10-12 11:45:44 +03:00
parent 45f7cdc532
commit 762c967855

View file

@ -23,6 +23,19 @@ var transformFuncsKeepMetricGroup = map[string]bool{
"clamp_min": true,
"floor": true,
"round": true,
"keep_last_value": true,
"keep_next_value": true,
"interpolate": true,
"running_min": true,
"running_max": true,
"running_avg": true,
"range_min": true,
"range_max": true,
"range_avg": true,
"range_first": true,
"range_last": true,
"range_quantile": true,
"smooth_exponential": true,
}
var transformFuncs = map[string]transformFunc{