From 6e3d9ae88ecce10420eeac82294c54c1b43dedf4 Mon Sep 17 00:00:00 2001 From: Ivan Topolnjak Date: Mon, 3 Nov 2014 02:33:09 +0100 Subject: + statsd: allow users to provide their own MetricKeyGenerator. --- kamon-statsd/src/main/resources/reference.conf | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'kamon-statsd/src/main/resources') diff --git a/kamon-statsd/src/main/resources/reference.conf b/kamon-statsd/src/main/resources/reference.conf index bd713f65..a10ac735 100644 --- a/kamon-statsd/src/main/resources/reference.conf +++ b/kamon-statsd/src/main/resources/reference.conf @@ -4,6 +4,7 @@ kamon { statsd { + # Hostname and port in which your StatsD is running. Remember that StatsD packets are sent using UDP and # setting unreachable hosts and/or not open ports wont be warned by the Kamon, your data wont go anywhere. hostname = "127.0.0.1" @@ -29,6 +30,10 @@ kamon { # In order to not get a ClassNotFoundException, we must register the kamon-sytem-metrics module report-system-metrics = false + # FQCN of the implementation of `kamon.statsd.MetricKeyGenerator` to be instantiated and used for assigning + # metric names. The implementation must have a single parameter constructor accepting a `com.typesafe.config.Config`. + metric-key-generator = kamon.statsd.SimpleMetricKeyGenerator + simple-metric-key-generator { # Application prefix for all metrics pushed to StatsD. The default namespacing scheme for metrics follows -- cgit v1.2.3