web: remove unused MetricsPath option (#3964)

This commit is contained in:
Anton Tereshchenkov 2018-03-21 10:29:40 +01:00 committed by Brian Brazil
parent ec8e4d8a7c
commit 4cb8f6c260
2 changed files with 0 additions and 4 deletions

View File

@ -161,7 +161,6 @@ type Options struct {
MaxConnections int
ExternalURL *url.URL
RoutePrefix string
MetricsPath string
UseLocalAssets bool
UserAssetsPath string
ConsoleTemplatesPath string

View File

@ -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()