From 491b1762c8d18b81d659cf9abc97bcc83d9da40e Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Wed, 21 Aug 2019 11:29:07 +0300 Subject: [PATCH] app/vmselect/promql: explain why empty timeseries arent removed in transformLabelValue --- app/vmselect/promql/transform.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/vmselect/promql/transform.go b/app/vmselect/promql/transform.go index db830cbbd..5d0d78731 100644 --- a/app/vmselect/promql/transform.go +++ b/app/vmselect/promql/transform.go @@ -904,6 +904,8 @@ func transformLabelValue(tfa *transformFuncArg) ([]*timeseries, error) { values[i] = v } } + // Do not remove timeseries with only NaN values, so `default` could be applied to them: + // label_value(q, "label") default 123 return rvs, nil }