Skip to content

[bp/1.37] [stack] stats number limit and scope level stats matcher support#44085

Draft
wbpcode wants to merge 3 commits intoenvoyproxy:release/v1.37from
wbpcode:dev-feat-1.37-fine-grained-stats
Draft

[bp/1.37] [stack] stats number limit and scope level stats matcher support#44085
wbpcode wants to merge 3 commits intoenvoyproxy:release/v1.37from
wbpcode:dev-feat-1.37-fine-grained-stats

Conversation

@wbpcode
Copy link
Member

@wbpcode wbpcode commented Mar 23, 2026

Commit Message: [bp/1.37] [stack] stats number limit and scope level stats matcher support
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

TAOXUY and others added 2 commits March 23, 2026 11:06
Commit Message: add support for limiting the max number of
stats(counter/gauge/histogram) per scope. This helps with memory
explosion caused by high cardinality stats.
Risk Level: low
Testing: unit test covered
Docs Changes: no doc update as it is a library support for internal
usage
Release Notes: updated
Platform Specific Features: no

---------

Signed-off-by: Xuyang Tao <taoxuy@google.com>
…ts (envoyproxy#43899)

Commit Message: stats: add additional scope level stats matcher to
enable/disable stats
Additional Description:

Part of envoyproxy#43847.

This PR add an optional stats matcher as constructor parameter of Scope.
If the scope level stats matcher is enabled, it will take priority over
the global stats matcher.

Risk Level: mid (core code change).
Testing: n/a.
Docs Changes: n/a
Release Notes: n/a.
Platform Specific Features: n/a.

---------

Signed-off-by: wbpcode/wangbaiping <wbphub@gmail.com>
Signed-off-by: wbpcode <wbphub@gmail.com>
@wbpcode wbpcode marked this pull request as draft March 23, 2026 11:13
@wbpcode
Copy link
Member Author

wbpcode commented Mar 23, 2026

I will review this first to ensure there is no high risk change first. And then, let other maintainer to review this.


Three commit are cherry-picked without conflicts (except change log). The force push is used to fix the last commit's sign.

@wbpcode wbpcode force-pushed the dev-feat-1.37-fine-grained-stats branch from 3865a6f to 5f5fc23 Compare March 23, 2026 11:16
@phlax phlax self-assigned this Mar 23, 2026
@phlax
Copy link
Member

phlax commented Mar 23, 2026

failure looks like it might be real

/retest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants