Re-add server up metrics

This commit is contained in:
Robin Müller
2020-09-26 13:30:03 +02:00
committed by GitHub
parent 5e63ab619e
commit f2e53a3569
3 changed files with 36 additions and 18 deletions

View File

@@ -236,8 +236,7 @@ func (m *Manager) LaunchHealthCheck() {
}
}
// FIXME metrics and context
healthcheck.GetHealthCheck().SetBackendsConfiguration(context.Background(), backendConfigs)
healthcheck.GetHealthCheck(m.metricsRegistry).SetBackendsConfiguration(context.Background(), backendConfigs)
}
func buildHealthCheckOptions(ctx context.Context, lb healthcheck.Balancer, backend string, hc *dynamic.HealthCheck) *healthcheck.Options {