diff --git a/CHANGELOG.md b/CHANGELOG.md index c5a0b8b0390..9b827b22a36 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -63,6 +63,7 @@ * [ENHANCEMENT] All: Handling CMK Access Denied errors. #5420 #5542 * [ENHANCEMENT] Querier: Retry store gateway client connection closing gRPC error. #5558 * [ENHANCEMENT] QueryFrontend: Add generic retry for all APIs. #5561. +* [ENHANCEMENT] QueryFrontend: Add metric for number of series requests. #5373 * [BUGFIX] Ruler: Validate if rule group can be safely converted back to rule group yaml from protobuf message #5265 * [BUGFIX] Querier: Convert gRPC `ResourceExhausted` status code from store gateway to 422 limit error. #5286 * [BUGFIX] Alertmanager: Route web-ui requests to the alertmanager distributor when sharding is enabled. #5293 diff --git a/pkg/querier/tripperware/roundtrip.go b/pkg/querier/tripperware/roundtrip.go index dc0a5c52712..93fa1234cda 100644 --- a/pkg/querier/tripperware/roundtrip.go +++ b/pkg/querier/tripperware/roundtrip.go @@ -127,10 +127,13 @@ func NewQueryTripperware( return RoundTripFunc(func(r *http.Request) (*http.Response, error) { isQuery := strings.HasSuffix(r.URL.Path, "/query") isQueryRange := strings.HasSuffix(r.URL.Path, "/query_range") + isSeries := strings.HasSuffix(r.URL.Path, "/series") op := "query" if isQueryRange { op = "query_range" + } else if isSeries { + op = "series" } tenantIDs, err := tenant.TenantIDs(r.Context())