Skip to content

Commit

Permalink
Enable Prometheus provider cleanup when only the router's metrics lev…
Browse files Browse the repository at this point in the history
…el is activated

Co-authored-by: Kevin Pollet <[email protected]>
  • Loading branch information
rtribotte and kevinpollet authored May 9, 2023
1 parent 8f206ce commit 9c73c4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/traefik/traefik.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ func setupServer(staticConfiguration *static.Configuration) (*server.Server, err
watcher.AddListener(switchRouter(routerFactory, serverEntryPointsTCP, serverEntryPointsUDP))

// Metrics
if metricsRegistry.IsEpEnabled() || metricsRegistry.IsSvcEnabled() {
if metricsRegistry.IsEpEnabled() || metricsRegistry.IsRouterEnabled() || metricsRegistry.IsSvcEnabled() {
var eps []string
for key := range serverEntryPointsTCP {
eps = append(eps, key)
Expand Down

0 comments on commit 9c73c4c

Please sign in to comment.