From 3f2686d0b3f6891508bc4422581a70cb50394017 Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Fri, 27 Mar 2015 18:51:13 +0100 Subject: [PATCH] Remove unused fields from MetricsService. --- main.go | 4 +--- web/api/api.go | 6 +----- 2 files changed, 2 insertions(+), 8 deletions(-) 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.