From fcfdd4cb5313a101ebc25b19fe02e6aa5dceddad Mon Sep 17 00:00:00 2001 From: "update-envoy[bot]" <135279899+update-envoy[bot]@users.noreply.github.com> Date: Tue, 7 Nov 2023 05:32:47 +0000 Subject: [PATCH] ratelimit support stat prefix (#30677) Risk Level: low Testing: ut Signed-off-by: wangkai19 Mirrored from https://github.com/envoyproxy/envoy @ a33cde6cea0cf4bfb700a9002175e74553dc52a4 --- envoy/extensions/filters/http/ratelimit/v3/rate_limit.proto | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/envoy/extensions/filters/http/ratelimit/v3/rate_limit.proto b/envoy/extensions/filters/http/ratelimit/v3/rate_limit.proto index bd5eb47e..3e33536b 100644 --- a/envoy/extensions/filters/http/ratelimit/v3/rate_limit.proto +++ b/envoy/extensions/filters/http/ratelimit/v3/rate_limit.proto @@ -25,7 +25,7 @@ option (udpa.annotations.file_status).package_version_status = ACTIVE; // Rate limit :ref:`configuration overview `. // [#extension: envoy.filters.http.ratelimit] -// [#next-free-field: 13] +// [#next-free-field: 14] message RateLimit { option (udpa.annotations.versioning).previous_message_type = "envoy.config.filter.http.rate_limit.v2.RateLimit"; @@ -130,6 +130,10 @@ message RateLimit { // Sets the HTTP status that is returned to the client when the ratelimit server returns an error // or cannot be reached. The default status is 500. type.v3.HttpStatus status_on_error = 12; + + // Optional additional prefix to use when emitting statistics. This allows to distinguish + // emitted statistics between configured ``ratelimit`` filters in an HTTP filter chain. + string stat_prefix = 13; } // Global rate limiting :ref:`architecture overview `.