You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Merging backends drops alt_stat_name (EnvoyProxy clusterStatName) for merged clusters #9570
EnvoyProxy.spec.telemetry.metrics.clusterStatName lets users configure a pattern (e.g. %ROUTE_NAME%-%ROUTE_RULE_NAME%) that Envoy Gateway resolves per-route-rule into each cluster's alt_stat_name, giving friendlier stat labels than the auto-generated cluster name.
When EnvoyProxy.spec.mergeBackends merges multiple routes' identical backends into a shared BackendCluster, alt_stat_name is currently dropped entirely for merged clusters — their stats fall back to Envoy's default (the long, structural cluster name) instead of the configured pattern.
Why this isn't a quick fix
clusterStatName is a single pattern string with no way to express different behavior for merged vs. non-merged clusters. Since the pattern's placeholders (%ROUTE_NAME%, %ROUTE_RULE_NAME%, etc.) are inherently per-route, a single resolved value can't correctly describe a cluster shared by multiple different routes.
Possible directions
Extend clusterStatName's API to let users express distinct behavior for the merged case (e.g. a separate pattern, or an explicit opt-out).
Sound like a legitimate limitation for the first iteration. Many users leverage clusterStatName to achieve metrics aggregation for the same backend, and mergeBackends would essentially achieve the same, albeit with less control over the actual metric name.
Activity
guydc commentedon Jul 28, 2026
Sound like a legitimate limitation for the first iteration. Many users leverage
clusterStatNameto achieve metrics aggregation for the same backend, andmergeBackendswould essentially achieve the same, albeit with less control over the actual metric name.github-actions commentedon Aug 27, 2026
This issue has been automatically marked as stale because it has not had activity in the last 30 days.