فهرست منبع

remove dupe stats.path check

Signed-off-by: Tim Vaillancourt <[email protected]>
Tim Vaillancourt 2 سال پیش
والد
کامیت
90aa8efb29
1فایلهای تغییر یافته به همراه0 افزوده شده و 5 حذف شده
  1. 0 5
      stats.go

+ 0 - 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")
 	}
 
-	path := c.GetString("stats.path", "")
-	if path == "" {
-		return nil, fmt.Errorf("stats.path should not be empty")
-	}
-
 	pr := prometheus.NewRegistry()
 	pClient := mp.NewPrometheusProvider(metrics.DefaultRegistry, namespace, subsystem, pr, i)
 	if !configTest {