From 67be94d7633260b9ed6c2d18fe44a0720f33b9d4 Mon Sep 17 00:00:00 2001 From: "data-plane-api(Azure Pipelines)" Date: Thu, 16 Jun 2022 12:31:56 +0000 Subject: [PATCH] route: add stats prefix for route (#21302) Commit Message: add stats prefix for route Additional Description: Adds API for stats generation support per route. Risk Level: Low Testing: Docs Changes: Release Notes: Platform Specific Features: API for #3351 Signed-off-by: Rama Chavali Mirrored from https://github.com/envoyproxy/envoy @ 7b937e8cd5796cf19d14f20abcb6be81f149c68b --- envoy/config/route/v3/route_components.proto | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/envoy/config/route/v3/route_components.proto b/envoy/config/route/v3/route_components.proto index 0c52c329..e564085d 100644 --- a/envoy/config/route/v3/route_components.proto +++ b/envoy/config/route/v3/route_components.proto @@ -219,7 +219,7 @@ message FilterAction { // // Envoy supports routing on HTTP method via :ref:`header matching // `. -// [#next-free-field: 19] +// [#next-free-field: 20] message Route { option (udpa.annotations.versioning).previous_message_type = "envoy.api.v2.route.Route"; @@ -317,6 +317,21 @@ message Route { // If set, the bytes actually buffered will be the minimum value of this and the // listener per_connection_buffer_limit_bytes. google.protobuf.UInt32Value per_request_buffer_limit_bytes = 16; + + // The human readable prefix to use when emitting statistics for this endpoint. + // The statistics are rooted at vhost..route.. + // This should be set for highly critical + // endpoints that one wishes to get “per-route” statistics on. + // If not set, endpoint statistics are not generated. + // + // The emitted statistics are the same as those documented for :ref:`virtual clusters `. + // + // .. warning:: + // + // We do not recommend setting up a stat prefix for + // every application endpoint. This is both not easily maintainable and + // statistics use a non-trivial amount of memory(approximately 1KiB per route). + string stat_prefix = 19; } // Compared to the :ref:`cluster ` field that specifies a