mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08:00
web: remove unused MetricsPath option (#3964)
This commit is contained in:
parent
ec8e4d8a7c
commit
4cb8f6c260
|
@ -161,7 +161,6 @@ type Options struct {
|
|||
MaxConnections int
|
||||
ExternalURL *url.URL
|
||||
RoutePrefix string
|
||||
MetricsPath string
|
||||
UseLocalAssets bool
|
||||
UserAssetsPath string
|
||||
ConsoleTemplatesPath string
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue