Skip to content

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

@LoopyLulu

Description

@LoopyLulu

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions