Fix error when setting ServerUp metric labels

This commit is contained in:
Kevin Pollet 2022-11-23 16:04:05 +01:00 committed by GitHub
parent 08279047ae
commit 3f8aa13e68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -141,8 +141,7 @@ func (shc *ServiceHealthChecker) Launch(ctx context.Context) {
shc.info.UpdateServerStatus(target.String(), statusStr) shc.info.UpdateServerStatus(target.String(), statusStr)
shc.metrics.ServiceServerUpGauge(). shc.metrics.ServiceServerUpGauge().
With("service", proxyName). With("service", proxyName, "url", target.String()).
With("url", target.String()).
Set(serverUpMetricValue) Set(serverUpMetricValue)
} }
} }