From 922ec7bbc7f5a0d7f193992fd9111f7e42b57e08 Mon Sep 17 00:00:00 2001 From: Akhil Thampy Date: Tue, 10 Apr 2018 16:28:14 -0500 Subject: [PATCH] statsd: add prefix to StatsConfig (#604) Signed-off-by: Akhil Thampy --- envoy/config/metrics/v2/stats.proto | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/envoy/config/metrics/v2/stats.proto b/envoy/config/metrics/v2/stats.proto index b29f9d08..7aab95a4 100644 --- a/envoy/config/metrics/v2/stats.proto +++ b/envoy/config/metrics/v2/stats.proto @@ -155,6 +155,33 @@ message StatsdSink { // Envoy will connect to this cluster to flush statistics. string tcp_cluster_name = 2; } + // [#not-implemented-hide:] Optional custom prefix for StatsdSink. If + // specified, this will override the default prefix. + // For example: + // + // .. code-block:: json + // + // { + // "prefix" : "envoy-prod" + // } + // + // will change emitted stats to + // + // .. code-block:: cpp + // + // envoy-prod.test_counter:1|c + // envoy-prod.test_timer:5|ms + // + // Note that the default prefix, "envoy", will be used if a prefix is not + // specified. + // + // Stats with default prefix: + // + // .. code-block:: cpp + // + // envoy.test_counter:1|c + // envoy.test_timer:5|ms + string prefix = 3; } // Stats configuration proto schema for built-in *envoy.dog_statsd* sink.