Skip to content

Add optional rate limit key config for Envoy override stats keys#1153

Open
andreaaliu wants to merge 6 commits into
envoyproxy:mainfrom
andreaaliu:feature/ratelimit-override-descriptor-key-config
Open

Add optional rate limit key config for Envoy override stats keys#1153
andreaaliu wants to merge 6 commits into
envoyproxy:mainfrom
andreaaliu:feature/ratelimit-override-descriptor-key-config

Conversation

@andreaaliu

Copy link
Copy Markdown

Summary

  • Add optional DESCRIPTOR_KEY_CONFIG YAML to control which descriptor entry values are included in stats keys for Envoy limit overrides.
  • When unset, behavior is unchanged (all non-empty entry values are included).
  • Load config once at provider startup; wire through file and xDS config providers.

Motivation

value_to_metric / detailed_metric apply to config-matched limits, but override descriptors always include every entry value in the stats key, which causes high metric cardinality. #1132

Signed-off-by: andrea liu <andrealiu@Roblox.com>
Signed-off-by: andrea liu <andrealiu@Roblox.com>
Signed-off-by: andrea liu <andrealiu@Roblox.com>
@andreaaliu andreaaliu force-pushed the feature/ratelimit-override-descriptor-key-config branch from afa05f6 to 1117d0e Compare June 4, 2026 18:08
Signed-off-by: andrea liu <andrealiu@Roblox.com>
Signed-off-by: andrea liu <andrealiu@Roblox.com>
@andreaaliu andreaaliu force-pushed the feature/ratelimit-override-descriptor-key-config branch from 09123c2 to 656c0bf Compare June 4, 2026 19:01
Signed-off-by: andrea liu <andrealiu@Roblox.com>
@andreaaliu andreaaliu marked this pull request as ready for review June 4, 2026 21:20
@andreaaliu

Copy link
Copy Markdown
Author

Hi @envoyproxy/ratelimit-maintainers, could I please get a review? Thanks!

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.

1 participant