From 502014065e941a06e40e219180d46a1b93e2db55 Mon Sep 17 00:00:00 2001 From: SungJin1212 Date: Mon, 16 Dec 2024 10:41:11 +0900 Subject: [PATCH] Allow ruler to retrieve proto format query response Signed-off-by: SungJin1212 --- CHANGELOG.md | 1 + pkg/querier/tripperware/roundtrip.go | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bad38ecd12..35069e81ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ * [CHANGE] Enable Compactor and Alertmanager in target all. #6204 * [CHANGE] Update the `cortex_ingester_inflight_push_requests` metric to represent the maximum number of inflight requests recorded in the last minute. #6437 * [FEATURE] Ruler: Add an experimental flag `-ruler.query-response-format` to retrieve query response as a proto format. #6345 +* [FEATURE] Ruler: Add an experimental flag `-ruler.query-response-format` to retrieve query response as a proto format. #6345 * [FEATURE] Ruler: Pagination support for List Rules API. #6299 * [FEATURE] Query Frontend/Querier: Add protobuf codec `-api.querier-default-codec` and the option to choose response compression type `-querier.response-compression`. #5527 * [FEATURE] Ruler: Experimental: Add `ruler.frontend-address` to allow query to query frontends instead of ingesters. #6151 diff --git a/pkg/querier/tripperware/roundtrip.go b/pkg/querier/tripperware/roundtrip.go index fe28c9244e..c6fcb18ce2 100644 --- a/pkg/querier/tripperware/roundtrip.go +++ b/pkg/querier/tripperware/roundtrip.go @@ -244,11 +244,10 @@ func (q roundTripper) Do(ctx context.Context, r Request) (Response, error) { } func getSource(userAgent string) string { - fmt.Println("userAgent", userAgent) if strings.Contains(userAgent, RulerUserAgent) { // caller is ruler return SourceRuler } return SourceAPI -} +} \ No newline at end of file