diff --git a/policy-controller/k8s/index/src/inbound/index/metrics.rs b/policy-controller/k8s/index/src/inbound/index/metrics.rs index 7ef4b3d264e09..53112286cc07e 100644 --- a/policy-controller/k8s/index/src/inbound/index/metrics.rs +++ b/policy-controller/k8s/index/src/inbound/index/metrics.rs @@ -120,7 +120,7 @@ impl Collector for Instrumented { )?; for (ns, index) in &this.namespaces.by_ns { let labels = [("namespace", ns.as_str())]; - let http_routes = ConstGauge::new(index.policy.http_routes.len() as u32); + let http_routes = ConstGauge::new(index.policy.routes.len() as u32); let http_routes_encoder = http_routes_encoder.encode_family(&labels)?; http_routes.encode(http_routes_encoder)?; }