mirror of
https://github.com/slackhq/nebula.git
synced 2025-11-12 00:03:57 +01:00
remove dupe stats.path check
Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
This commit is contained in:
parent
dd7f12f7c0
commit
90aa8efb29
5
stats.go
5
stats.go
@ -86,11 +86,6 @@ func startPrometheusStats(l *logrus.Logger, i time.Duration, c *config.C, listen
|
|||||||
return nil, fmt.Errorf("http.listen or stats.listen must be defined to use promtheus stats")
|
return nil, fmt.Errorf("http.listen or stats.listen must be defined to use promtheus stats")
|
||||||
}
|
}
|
||||||
|
|
||||||
path := c.GetString("stats.path", "")
|
|
||||||
if path == "" {
|
|
||||||
return nil, fmt.Errorf("stats.path should not be empty")
|
|
||||||
}
|
|
||||||
|
|
||||||
pr := prometheus.NewRegistry()
|
pr := prometheus.NewRegistry()
|
||||||
pClient := mp.NewPrometheusProvider(metrics.DefaultRegistry, namespace, subsystem, pr, i)
|
pClient := mp.NewPrometheusProvider(metrics.DefaultRegistry, namespace, subsystem, pr, i)
|
||||||
if !configTest {
|
if !configTest {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user