diff --git a/plugin/metrics/prometheus/factory.go b/plugin/metrics/prometheus/factory.go index 03ad9f2912f..48fe906196e 100644 --- a/plugin/metrics/prometheus/factory.go +++ b/plugin/metrics/prometheus/factory.go @@ -75,12 +75,10 @@ func NewFactoryWithConfig( if err := cfg.Validate(); err != nil { return nil, err } - f := NewFactory() f.options = &Options{ Configuration: cfg, } f.Initialize(logger) - return f, nil }