statsd: add prefix to StatsConfig (#604)

Signed-off-by: Akhil Thampy <akhil@akhilthampy.com>
pull/618/head
Akhil Thampy 7 years ago committed by Matt Klein
parent 2c1c23d6bb
commit 922ec7bbc7
  1. 27
      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.

Loading…
Cancel
Save