web: remove unused MetricsPath option (#3964)
This commit is contained in:
parent
ec8e4d8a7c
commit
4cb8f6c260
|
@ -161,7 +161,6 @@ type Options struct {
|
||||||
MaxConnections int
|
MaxConnections int
|
||||||
ExternalURL *url.URL
|
ExternalURL *url.URL
|
||||||
RoutePrefix string
|
RoutePrefix string
|
||||||
MetricsPath string
|
|
||||||
UseLocalAssets bool
|
UseLocalAssets bool
|
||||||
UserAssetsPath string
|
UserAssetsPath string
|
||||||
ConsoleTemplatesPath string
|
ConsoleTemplatesPath string
|
||||||
|
|
|
@ -105,7 +105,6 @@ func TestReadyAndHealthy(t *testing.T) {
|
||||||
RuleManager: nil,
|
RuleManager: nil,
|
||||||
Notifier: nil,
|
Notifier: nil,
|
||||||
RoutePrefix: "/",
|
RoutePrefix: "/",
|
||||||
MetricsPath: "/metrics/",
|
|
||||||
EnableAdminAPI: true,
|
EnableAdminAPI: true,
|
||||||
TSDB: func() *libtsdb.DB { return db },
|
TSDB: func() *libtsdb.DB { return db },
|
||||||
}
|
}
|
||||||
|
@ -201,7 +200,6 @@ func TestRoutePrefix(t *testing.T) {
|
||||||
RuleManager: nil,
|
RuleManager: nil,
|
||||||
Notifier: nil,
|
Notifier: nil,
|
||||||
RoutePrefix: "/prometheus",
|
RoutePrefix: "/prometheus",
|
||||||
MetricsPath: "/prometheus/metrics",
|
|
||||||
EnableAdminAPI: true,
|
EnableAdminAPI: true,
|
||||||
TSDB: func() *libtsdb.DB { return db },
|
TSDB: func() *libtsdb.DB { return db },
|
||||||
}
|
}
|
||||||
|
@ -290,7 +288,6 @@ func TestDebugHandler(t *testing.T) {
|
||||||
} {
|
} {
|
||||||
opts := &Options{
|
opts := &Options{
|
||||||
RoutePrefix: tc.prefix,
|
RoutePrefix: tc.prefix,
|
||||||
MetricsPath: "/metrics",
|
|
||||||
}
|
}
|
||||||
handler := New(nil, opts)
|
handler := New(nil, opts)
|
||||||
handler.Ready()
|
handler.Ready()
|
||||||
|
|
Loading…
Reference in New Issue