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
stats: strip inner custom namespaces in prometheus names
The Prometheus formatter only stripped a registered custom stat
namespace when it was the leading segment of the tag-extracted name.
This worked for listener/root-scoped Wasm custom stats but not for
upstream Wasm stats scoped under a cluster, where after tag extraction
the namespace ends up in the middle (e.g. `cluster.wasmcustom.foo`),
producing names like `envoy_cluster_wasmcustom_foo`.
Add `CustomStatNamespaces::stripRegisteredInnerNamespace()` and call it
from the Prometheus formatter to strip a registered namespace appearing
as a non-leading, non-trailing segment, without hard-coding `wasmcustom`
or a specific scope depth. Gated by
`envoy.reloadable_features.strip_scoped_custom_stat_namespace`
(default true).
Signed-off-by: Yueshang zuo <zuoyueshang.zys@alibaba-inc.com>
0 commit comments