# ==================================== # # Kamon-StatsD Reference Configuration # # ==================================== # 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" port = 8125 # Interval between metrics data flushes to StatsD. It's value must be equal or greater than the # kamon.metrics.tick-interval setting. flush-interval = 1 second # Max packet size for UDP metrics data sent to StatsD. max-packet-size = 1024 bytes # Subscription patterns used to select which metrics will be pushed to StatsD. Note that first, metrics # collection for your desired entities must be activated under the kamon.metrics.filters settings. subscriptions { trace = [ "**" ] actor = [ "**" ] dispatcher = [ "**" ] user-metric = [ "**" ] system-metric = [ "**" ] } # Enable system metrics # 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 # this pattern: # application.host.entity.entity-name.metric-name application = "kamon" # Includes the name of the hostname in the generated metric. When set to false, the scheme for the metrics # will look as follows: # application.entity.entity-name.metric-name include-hostname = true # Allow users to override the name of the hostname reported by kamon. When changed, the scheme for the metrics # will have the following pattern: # application.hostname-override-value.entity.entity-name.metric-name hostname-override = none # When the sections that make up the metric names have special characters like dots (very common in dispatcher # names) or forward slashes (all actor metrics) we need to sanitize those values before sending them to StatsD # with one of the following strategies: # - normalize: changes ': ' to '-' and ' ', '/' and '.' to '_'. # - percent-encode: percent encode the section on the metric name. Please note that StatsD doesn't support # percent encoded metric names, this option is only useful if using our docker image which has a patched # version of StatsD or if you are running your own, customized version of StatsD that supports this. metric-name-normalization-strategy = normalize } } }