From c03b5f50ec3be4113783f2a47f891b2c9c4d2b86 Mon Sep 17 00:00:00 2001 From: msaf1980 Date: Tue, 1 Jun 2021 22:25:31 +0500 Subject: [PATCH] fix: aliasByNode strip function in name --- expr/functions/aliasByNode/function.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/expr/functions/aliasByNode/function.go b/expr/functions/aliasByNode/function.go index e3372b664..ed0d531c3 100644 --- a/expr/functions/aliasByNode/function.go +++ b/expr/functions/aliasByNode/function.go @@ -40,8 +40,8 @@ func (f *aliasByNode) Do(ctx context.Context, e parser.Expr, from, until int64, var results []*types.MetricData for _, a := range args { - name := helper.AggKey(a, nodesOrTags) r := *a.CopyLink() + name := helper.ExtractMetric(helper.AggKey(a, nodesOrTags)) if len(name) > 0 { r.Name = name r.Tags["name"] = r.Name