envoy/lds: update stat prefix for network RBAC
Unlike other stats, the RBAC stat prefix gets suffixed
with `rbac`. This change updates the stat prefix for the
network RBAC policy type so it renders correctly:
previously:
`RBACrbac.allowed: 0`
now:
`network-rbac.allowed: 0`
Part of
@@ -60,7 +60,7 @@ func (lb *listenerBuilder) buildInboundRBACPolicies() (*xds_network_rbac.RBAC, e
// Create an inbound RBAC policy that denies a request by default, unless a policy explicitly allows it
networkRBACPolicy := &xds_network_rbac.RBAC{
- StatPrefix: "RBAC",
+ StatPrefix: "network-", // will be displayed as network-rbac.<path>
Rules: &xds_rbac.RBAC{
Action: xds_rbac.RBAC_ALLOW, // Allows the request if and only if there is a policy that matches the request
Policies: rbacPolicies,
