Motivation
Zone CPs don't emit resources_count{resource_type="Dataplane"} metric. The counter in pkg/metrics/store/counter.go derives Dataplane and policy counts from MeshInsight resources, which only exist on the global CP. Zone CPs have no MeshInsight, so the loop never executes and these resource types are never emitted.
This breaks dashboards and monitoring on zone CPs — the Dataplane Count panel shows "No data".
Implementation information
countMeshScopedResources() in pkg/metrics/store/counter.go relies solely on MeshInsight.Spec.GetDataplanes().GetTotal(). On a zone CP, it should count Dataplane resources directly from the store instead of depending on MeshInsight.
Motivation
Zone CPs don't emit
resources_count{resource_type="Dataplane"}metric. The counter inpkg/metrics/store/counter.goderives Dataplane and policy counts fromMeshInsightresources, which only exist on the global CP. Zone CPs have noMeshInsight, so the loop never executes and these resource types are never emitted.This breaks dashboards and monitoring on zone CPs — the Dataplane Count panel shows "No data".
Implementation information
countMeshScopedResources()inpkg/metrics/store/counter.gorelies solely onMeshInsight.Spec.GetDataplanes().GetTotal(). On a zone CP, it should countDataplaneresources directly from the store instead of depending onMeshInsight.