Skip to content

Commit e87bd2f

Browse files
committed
query : add missing xincrease/xrate aggregation
1 parent f230915 commit e87bd2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/query/querier.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ func aggrsFromFunc(f string) []storepb.Aggr {
234234
if strings.HasPrefix(f, "sum_") {
235235
return []storepb.Aggr{storepb.Aggr_SUM}
236236
}
237-
if f == "increase" || f == "rate" || f == "irate" || f == "resets" {
237+
if f == "increase" || f == "rate" || f == "irate" || f == "resets" || f == "xincrease" || f == "xrate" {
238238
return []storepb.Aggr{storepb.Aggr_COUNTER}
239239
}
240240
// In the default case, we retrieve count and sum to compute an average.

0 commit comments

Comments
 (0)