From a012f6fe708945dfcd6712a6b890dd79a563ef92 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Sat, 4 Apr 2020 14:44:40 +0300 Subject: [PATCH] app/vmselect/promql: keep metric name after applying `first_over_time` and `last_over_time` functions --- app/vmselect/promql/rollup.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/vmselect/promql/rollup.go b/app/vmselect/promql/rollup.go index 977c7ec95d..6820873e91 100644 --- a/app/vmselect/promql/rollup.go +++ b/app/vmselect/promql/rollup.go @@ -153,6 +153,8 @@ var rollupFuncsKeepMetricGroup = map[string]bool{ "geomean_over_time": true, "hoeffding_bound_lower": true, "hoeffding_bound_upper": true, + "first_over_time": true, + "last_over_time": true, } func getRollupAggrFuncNames(expr metricsql.Expr) ([]string, error) {