File tree Expand file tree Collapse file tree 5 files changed +4
-2
lines changed
internal/cortex/frontend/transport Expand file tree Collapse file tree 5 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,7 @@ require (
113113
114114require (
115115 github.com/cortexproject/promqlsmith v0.0.0-20240326071418-c2a9ca1e89f5
116+ github.com/grpc-ecosystem/go-grpc-middleware/providers/prometheus v1.0.1
116117 github.com/hashicorp/golang-lru v0.6.0
117118 github.com/hashicorp/golang-lru/v2 v2.0.7
118119 github.com/mitchellh/go-ps v1.0.0
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ type HandlerConfig struct {
4848 QueryStatsEnabled bool `yaml:"query_stats_enabled"`
4949 LogFailedQueries bool `yaml:"log_failed_queries"`
5050 FailedQueryCacheCapacity int `yaml:"failed_query_cache_capacity"`
51+ SlowQueryLogsUserHeader string `yaml:"slow_query_logs_user_header"`
5152}
5253
5354// Handler accepts queries and forwards them to RoundTripper. It can log slow queries,
Original file line number Diff line number Diff line change @@ -242,6 +242,7 @@ type endpointSetNodeCollector struct {
242242 labels []string
243243 connectionsWithAddr * prometheus.Desc
244244 connectionsWithKeys * prometheus.Desc
245+ logger log.Logger
245246}
246247
247248func newEndpointSetNodeCollector (logger log.Logger , labels ... string ) * endpointSetNodeCollector {
Original file line number Diff line number Diff line change @@ -46,7 +46,6 @@ import (
4646
4747 extpromhttp "github.com/thanos-io/thanos/pkg/extprom/http"
4848 "github.com/thanos-io/thanos/pkg/pool"
49- "github.com/thanos-io/thanos/pkg/pool"
5049 "github.com/thanos-io/thanos/pkg/runutil"
5150 "github.com/thanos-io/thanos/pkg/server/http/middleware"
5251 "github.com/thanos-io/thanos/pkg/store/labelpb"
Original file line number Diff line number Diff line change @@ -720,7 +720,7 @@ func TestBucketStore_TSDBInfo(t *testing.T) {
720720 MinTime : 0 ,
721721 MaxTime : 2000 ,
722722 },
723- }, actual )
723+ })
724724}
725725
726726func TestBucketStore_Info (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments