Skip to content

Commit 4e162a0

Browse files
authored
Track number of get series request requests in QFE (#5373)
* track get series request requests Signed-off-by: Ben Ye <[email protected]> * update changelog Signed-off-by: Ben Ye <[email protected]> --------- Signed-off-by: Ben Ye <[email protected]>
1 parent 2885aa9 commit 4e162a0

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
* [ENHANCEMENT] All: Handling CMK Access Denied errors. #5420 #5542
6464
* [ENHANCEMENT] Querier: Retry store gateway client connection closing gRPC error. #5558
6565
* [ENHANCEMENT] QueryFrontend: Add generic retry for all APIs. #5561.
66+
* [ENHANCEMENT] QueryFrontend: Add metric for number of series requests. #5373
6667
* [BUGFIX] Ruler: Validate if rule group can be safely converted back to rule group yaml from protobuf message #5265
6768
* [BUGFIX] Querier: Convert gRPC `ResourceExhausted` status code from store gateway to 422 limit error. #5286
6869
* [BUGFIX] Alertmanager: Route web-ui requests to the alertmanager distributor when sharding is enabled. #5293

pkg/querier/tripperware/roundtrip.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,13 @@ func NewQueryTripperware(
127127
return RoundTripFunc(func(r *http.Request) (*http.Response, error) {
128128
isQuery := strings.HasSuffix(r.URL.Path, "/query")
129129
isQueryRange := strings.HasSuffix(r.URL.Path, "/query_range")
130+
isSeries := strings.HasSuffix(r.URL.Path, "/series")
130131

131132
op := "query"
132133
if isQueryRange {
133134
op = "query_range"
135+
} else if isSeries {
136+
op = "series"
134137
}
135138

136139
tenantIDs, err := tenant.TenantIDs(r.Context())

0 commit comments

Comments
 (0)