envoyproxy / envoyproxy/envoy

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

Open
#41,339 7 comments 1 reaction 0 assignees View on GitHub
area/ratelimit enhancement help wanted
Dominant language
C++
Stars
28.9k
Forks
5.6k
Avg merge
1d 22h
Merged PRs (30d)
430

Description

*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.

Image
Specifically each descriptor should have either 1 (OK) or 2(OVERLIMIT) and I want to be able to log this info for each descriptor.

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.