From 4cb8f6c260f561024aa3bc0012ed191f5202b32e Mon Sep 17 00:00:00 2001 From: Anton Tereshchenkov Date: Wed, 21 Mar 2018 10:29:40 +0100 Subject: [PATCH] web: remove unused MetricsPath option (#3964) --- web/web.go | 1 - web/web_test.go | 3 --- 2 files changed, 4 deletions(-) diff --git a/web/web.go b/web/web.go index 1342905e6..5bf004958 100644 --- a/web/web.go +++ b/web/web.go @@ -161,7 +161,6 @@ type Options struct { MaxConnections int ExternalURL *url.URL RoutePrefix string - MetricsPath string UseLocalAssets bool UserAssetsPath string ConsoleTemplatesPath string diff --git a/web/web_test.go b/web/web_test.go index a9cd7bb02..1b25f7047 100644 --- a/web/web_test.go +++ b/web/web_test.go @@ -105,7 +105,6 @@ func TestReadyAndHealthy(t *testing.T) { RuleManager: nil, Notifier: nil, RoutePrefix: "/", - MetricsPath: "/metrics/", EnableAdminAPI: true, TSDB: func() *libtsdb.DB { return db }, } @@ -201,7 +200,6 @@ func TestRoutePrefix(t *testing.T) { RuleManager: nil, Notifier: nil, RoutePrefix: "/prometheus", - MetricsPath: "/prometheus/metrics", EnableAdminAPI: true, TSDB: func() *libtsdb.DB { return db }, } @@ -290,7 +288,6 @@ func TestDebugHandler(t *testing.T) { } { opts := &Options{ RoutePrefix: tc.prefix, - MetricsPath: "/metrics", } handler := New(nil, opts) handler.Ready()