1
0
Fork 0

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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 {