diff --git a/main.go b/main.go index 415310293..cbc756d39 100644 --- a/main.go +++ b/main.go @@ -167,9 +167,7 @@ func NewPrometheus() *prometheus { } metricsService := &api.MetricsService{ - Config: &conf, - TargetManager: targetManager, - Storage: memStorage, + Storage: memStorage, } webService := &web.WebService{ diff --git a/web/api/api.go b/web/api/api.go index fe50752d8..44d599d1d 100644 --- a/web/api/api.go +++ b/web/api/api.go @@ -18,17 +18,13 @@ import ( "github.com/prometheus/client_golang/prometheus" - "github.com/prometheus/prometheus/config" - "github.com/prometheus/prometheus/retrieval" "github.com/prometheus/prometheus/storage/local" "github.com/prometheus/prometheus/web/httputils" ) // MetricsService manages the /api HTTP endpoint. type MetricsService struct { - Config *config.Config - TargetManager retrieval.TargetManager - Storage local.Storage + Storage local.Storage } // RegisterHandler registers the handler for the various endpoints below /api.