diff --git a/cmd/s3-gw/app_healthy.go b/cmd/s3-gw/app_healthy.go index 6321dc6df..71841faf9 100644 --- a/cmd/s3-gw/app_healthy.go +++ b/cmd/s3-gw/app_healthy.go @@ -22,12 +22,12 @@ func newGateMetrics() *GateMetrics { stateMetric.register() return &GateMetrics{ - stateMetrics: stateMetric, + stateMetrics: *stateMetric, } } -func newStateMetrics() stateMetrics { - return stateMetrics{ +func newStateMetrics() *stateMetrics { + return &stateMetrics{ healthCheck: prometheus.NewGauge(prometheus.GaugeOpts{ Namespace: namespace, Subsystem: stateSubsystem,