Enable Prometheus provider cleanup when only the router's metrics level is activated

Co-authored-by: Kevin Pollet <pollet.kevin@gmail.com>
This commit is contained in:
Romain
2023-05-09 17:38:05 +02:00
committed by GitHub
parent 8f206ce319
commit 9c73c4c584
+1 -1
View File
@@ -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)