diff --git a/cmd/neofs-node/control.go b/cmd/neofs-node/control.go index 439050a0..e0cf1a65 100644 --- a/cmd/neofs-node/control.go +++ b/cmd/neofs-node/control.go @@ -70,6 +70,10 @@ func (c *cfg) NetmapStatus() control.NetmapStatus { func (c *cfg) setHealthStatus(st control.HealthStatus) { c.healthStatus.Store(int32(st)) + + if c.metricsCollector != nil { + c.metricsCollector.SetHealth(int32(st)) + } } func (c *cfg) HealthStatus() control.HealthStatus {