diff --git a/cmd/jaeger/internal/extension/jaegerstorage/config.go b/cmd/jaeger/internal/extension/jaegerstorage/config.go index c32108e6a0a..b1f78a57b9e 100644 --- a/cmd/jaeger/internal/extension/jaegerstorage/config.go +++ b/cmd/jaeger/internal/extension/jaegerstorage/config.go @@ -109,9 +109,7 @@ func (cfg *MetricBackends) Unmarshal(conf *confmap.Conf) error { // apply defaults if conf.IsSet("prometheus") { cfg.Prometheus = &prometheus.Options{ - Primary: prometheus.NamespaceConfig{ - Configuration: prometheus.DefaultConfig(), - }, + Configuration: prometheus.DefaultConfig(), } // TODO: Need to implement this, Need to add prometheus as a v2 storage ?? } diff --git a/plugin/metrics/prometheus/options.go b/plugin/metrics/prometheus/options.go index b2cf1397c65..0e3d03bda03 100644 --- a/plugin/metrics/prometheus/options.go +++ b/plugin/metrics/prometheus/options.go @@ -68,7 +68,7 @@ func DefaultConfig() config.Configuration { } // NewOptions creates a new Options struct. -func NewOptions(primaryNamespace string) *Options { +func NewOptions() *Options { defaultConfig := DefaultConfig() return &Options{