diff --git a/cmd/metrics-v2.go b/cmd/metrics-v2.go index c5ab99bee..684f377e1 100644 --- a/cmd/metrics-v2.go +++ b/cmd/metrics-v2.go @@ -1383,7 +1383,7 @@ func getClusterStorageMetrics() MetricsGroup { read: func(ctx context.Context) (metrics []Metric) { objLayer := newObjectLayerFn() // Service not initialized yet - if objLayer == nil || globalIsGateway { + if objLayer == nil || !globalIsErasure { return }