Skip to content

Commit

Permalink
query : add missing xincrease/xrate aggregation (thanos-io#8120)
Browse files Browse the repository at this point in the history
  • Loading branch information
miinsun authored Feb 25, 2025
1 parent f230915 commit 4a83459
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/query/querier.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ func aggrsFromFunc(f string) []storepb.Aggr {
if strings.HasPrefix(f, "sum_") {
return []storepb.Aggr{storepb.Aggr_SUM}
}
if f == "increase" || f == "rate" || f == "irate" || f == "resets" {
if f == "increase" || f == "rate" || f == "irate" || f == "resets" || f == "xincrease" || f == "xrate" {
return []storepb.Aggr{storepb.Aggr_COUNTER}
}
// In the default case, we retrieve count and sum to compute an average.
Expand Down

0 comments on commit 4a83459

Please sign in to comment.