@@ -10,6 +10,7 @@ import (
1010
1111 "github.com/go-kit/kit/log/level"
1212 "github.com/grafana/dskit/modules"
13+ "github.com/grafana/dskit/runtimeconfig"
1314 "github.com/grafana/dskit/services"
1415 "github.com/opentracing-contrib/go-stdlib/nethttp"
1516 "github.com/opentracing/opentracing-go"
@@ -32,7 +33,7 @@ import (
3233 "github.com/cortexproject/cortex/pkg/configs/db"
3334 "github.com/cortexproject/cortex/pkg/distributor"
3435 "github.com/cortexproject/cortex/pkg/flusher"
35- frontend "github.com/cortexproject/cortex/pkg/frontend"
36+ "github.com/cortexproject/cortex/pkg/frontend"
3637 "github.com/cortexproject/cortex/pkg/frontend/transport"
3738 "github.com/cortexproject/cortex/pkg/ingester"
3839 "github.com/cortexproject/cortex/pkg/querier"
@@ -46,7 +47,6 @@ import (
4647 "github.com/cortexproject/cortex/pkg/scheduler"
4748 "github.com/cortexproject/cortex/pkg/storegateway"
4849 util_log "github.com/cortexproject/cortex/pkg/util/log"
49- "github.com/cortexproject/cortex/pkg/util/runtimeconfig"
5050 "github.com/cortexproject/cortex/pkg/util/validation"
5151)
5252
@@ -157,7 +157,7 @@ func (t *Cortex) initRuntimeConfig() (services.Service, error) {
157157 // make sure to set default limits before we start loading configuration into memory
158158 validation .SetDefaultLimitsForYAMLUnmarshalling (t .Cfg .LimitsConfig )
159159
160- serv , err := runtimeconfig .NewRuntimeConfigManager (t .Cfg .RuntimeConfig , prometheus .DefaultRegisterer )
160+ serv , err := runtimeconfig .New (t .Cfg .RuntimeConfig , prometheus .WrapRegistererWithPrefix ( "cortex_" , prometheus . DefaultRegisterer ), util_log . Logger )
161161 if err == nil {
162162 // TenantLimits just delegates to RuntimeConfig and doesn't have any state or need to do
163163 // anything in the start/stopping phase. Thus we can create it as part of runtime config
0 commit comments