Skip to content

Commit

Permalink
remove dupe stats.path check
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
  • Loading branch information
timvaillancourt committed Jul 6, 2023
1 parent dd7f12f commit 90aa8ef
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 90aa8ef

Please sign in to comment.