Skip to content
This repository was archived by the owner on Aug 23, 2023. It is now read-only.

Commit a80464c

Browse files
authored
Add Tags for summarize
1 parent 1897d08 commit a80464c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

expr/func_summarize.go

+5-2
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,11 @@ func (s *FuncSummarize) Exec(cache map[Req][]models.Series) ([]models.Series, er
7575
Datapoints: out,
7676
Interval: interval,
7777
}
78-
outputs = append(outputs, output)
79-
cache[Req{}] = append(cache[Req{}], output)
78+
output.Tags["summarize"] = s.intervalString
79+
output.Tags["summarizeFunction"] = s.fn
80+
81+
outputs = append(outputs, output)
82+
cache[Req{}] = append(cache[Req{}], output)
8083
}
8184
return outputs, nil
8285
}

0 commit comments

Comments
 (0)