浏览代码

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")
 		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 {