@@ -10,6 +10,7 @@ import (
10
10
11
11
"github.com/go-kit/kit/log/level"
12
12
"github.com/grafana/dskit/modules"
13
+ "github.com/grafana/dskit/runtimeconfig"
13
14
"github.com/grafana/dskit/services"
14
15
"github.com/opentracing-contrib/go-stdlib/nethttp"
15
16
"github.com/opentracing/opentracing-go"
@@ -32,7 +33,7 @@ import (
32
33
"github.com/cortexproject/cortex/pkg/configs/db"
33
34
"github.com/cortexproject/cortex/pkg/distributor"
34
35
"github.com/cortexproject/cortex/pkg/flusher"
35
- frontend "github.com/cortexproject/cortex/pkg/frontend"
36
+ "github.com/cortexproject/cortex/pkg/frontend"
36
37
"github.com/cortexproject/cortex/pkg/frontend/transport"
37
38
"github.com/cortexproject/cortex/pkg/ingester"
38
39
"github.com/cortexproject/cortex/pkg/querier"
@@ -46,7 +47,6 @@ import (
46
47
"github.com/cortexproject/cortex/pkg/scheduler"
47
48
"github.com/cortexproject/cortex/pkg/storegateway"
48
49
util_log "github.com/cortexproject/cortex/pkg/util/log"
49
- "github.com/cortexproject/cortex/pkg/util/runtimeconfig"
50
50
"github.com/cortexproject/cortex/pkg/util/validation"
51
51
)
52
52
@@ -157,7 +157,7 @@ func (t *Cortex) initRuntimeConfig() (services.Service, error) {
157
157
// make sure to set default limits before we start loading configuration into memory
158
158
validation .SetDefaultLimitsForYAMLUnmarshalling (t .Cfg .LimitsConfig )
159
159
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 )
161
161
if err == nil {
162
162
// TenantLimits just delegates to RuntimeConfig and doesn't have any state or need to do
163
163
// anything in the start/stopping phase. Thus we can create it as part of runtime config
0 commit comments