diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2014-11-03 02:33:09 +0100 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2014-11-03 02:33:09 +0100 |
commit | 6e3d9ae88ecce10420eeac82294c54c1b43dedf4 (patch) | |
tree | f96d5aec3e35e557663a3eb01654170371577831 /kamon-statsd/src/main/resources | |
parent | 992dd3007a6ddd24bf2aaf952aeacab7d8d9fb1a (diff) | |
download | Kamon-6e3d9ae88ecce10420eeac82294c54c1b43dedf4.tar.gz Kamon-6e3d9ae88ecce10420eeac82294c54c1b43dedf4.tar.bz2 Kamon-6e3d9ae88ecce10420eeac82294c54c1b43dedf4.zip |
+ statsd: allow users to provide their own MetricKeyGenerator.
Diffstat (limited to 'kamon-statsd/src/main/resources')
-rw-r--r-- | kamon-statsd/src/main/resources/reference.conf | 5 |
1 files changed, 5 insertions, 0 deletions
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 |