diff --git a/pkg/frontend/querymiddleware/roundtrip.go b/pkg/frontend/querymiddleware/roundtrip.go index 0aa5d49fa5f..05da4ffe986 100644 --- a/pkg/frontend/querymiddleware/roundtrip.go +++ b/pkg/frontend/querymiddleware/roundtrip.go @@ -81,6 +81,8 @@ type Config struct { ExtraInstantQueryMiddlewares []MetricsQueryMiddleware `yaml:"-"` ExtraRangeQueryMiddlewares []MetricsQueryMiddleware `yaml:"-"` + ExtraPropagateHeaders []string `yaml:"-"` + QueryResultResponseFormat string `yaml:"query_result_response_format"` } diff --git a/pkg/mimir/modules.go b/pkg/mimir/modules.go index a2839280bb9..d6b9a09b266 100644 --- a/pkg/mimir/modules.go +++ b/pkg/mimir/modules.go @@ -699,7 +699,7 @@ func (t *Mimir) initFlusher() (serv services.Service, err error) { // initQueryFrontendCodec initializes query frontend codec. // NOTE: Grafana Enterprise Metrics depends on this. func (t *Mimir) initQueryFrontendCodec() (services.Service, error) { - t.QueryFrontendCodec = querymiddleware.NewPrometheusCodec(t.Registerer, t.Cfg.Querier.EngineConfig.LookbackDelta, t.Cfg.Frontend.QueryMiddleware.QueryResultResponseFormat, nil) + t.QueryFrontendCodec = querymiddleware.NewPrometheusCodec(t.Registerer, t.Cfg.Querier.EngineConfig.LookbackDelta, t.Cfg.Frontend.QueryMiddleware.QueryResultResponseFormat, t.Cfg.Frontend.QueryMiddleware.ExtraPropagateHeaders) return nil, nil }