Skip to content

Commit

Permalink
fix: aliasByNode strip function in name
Browse files Browse the repository at this point in the history
  • Loading branch information
msaf1980 authored and Civil committed Jun 1, 2021
1 parent 12c2b80 commit c03b5f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion expr/functions/aliasByNode/function.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c03b5f5

Please sign in to comment.