diff --git a/pkg/controller/exporter.go b/pkg/controller/exporter.go index 1e86d8a395a..3cfab0ac749 100644 --- a/pkg/controller/exporter.go +++ b/pkg/controller/exporter.go @@ -39,6 +39,10 @@ func (c *Controller) exportSubnetMetrics() { resetSubnetMetrics() for _, subnet := range subnets { + if !subnet.Status.IsValidated() { + continue + } + c.exportSubnetAvailableIPsGauge(subnet) c.exportSubnetUsedIPsGauge(subnet) c.exportSubnetIPAMInfo(subnet)