envoyproxy/envoy

How to log which rate limit rule was triggered via descriptor?

开放

#41,339 创建于 2025年10月2日

 (7 条评论) (1 个反应) (0 位负责人)C++ (5,373 个派生)batch import
area/ratelimitenhancementhelp wanted

仓库指标

星标
 (27,997 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Title: Is there an easy way to log which rate limit rule was triggered via descriptor?

Description: I can't seem to find how to log which specific rate limit rule was triggered and blocked/overlimit. The Rate Limit Response has a statuses field, which is a list of DescriptorStatus messages. This information doesn't seem to be logged anywhere, more specifically the descriptor status code.

Link to the Rate Limit Response docs: https://www.envoyproxy.io/docs/envoy/latest/api-v3/service/ratelimit/v3/rls.proto#service-ratelimit-v3-ratelimitresponse-descriptorstatus

https://www.envoyproxy.io/docs/envoy/latest/api-v3/service/ratelimit/v3/rls.proto#service-ratelimit-v3-ratelimitresponse

贡献者指南