From 90aa8efb2976af18bcdcbe383d68cae9d35f75e4 Mon Sep 17 00:00:00 2001 From: Tim Vaillancourt Date: Fri, 7 Jul 2023 01:37:36 +0200 Subject: [PATCH] remove dupe stats.path check Signed-off-by: Tim Vaillancourt --- stats.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/stats.go b/stats.go index e444469..56d2938 100644 --- a/stats.go +++ b/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 {