From ace4d9d09097aa9b7e032d5bfbe154dcf73f74ed Mon Sep 17 00:00:00 2001 From: Ivan Topolnjak Date: Sun, 18 May 2014 21:38:55 -0300 Subject: = core: move the scheduling of gauge recordings to MetricsExtension and load interval for recordings from config --- kamon-core/src/main/resources/reference.conf | 45 +++++++++++----------------- 1 file changed, 18 insertions(+), 27 deletions(-) (limited to 'kamon-core/src/main/resources') diff --git a/kamon-core/src/main/resources/reference.conf b/kamon-core/src/main/resources/reference.conf index e5168929..b1e5309d 100644 --- a/kamon-core/src/main/resources/reference.conf +++ b/kamon-core/src/main/resources/reference.conf @@ -4,8 +4,24 @@ kamon { metrics { + + # Time interval at which Kamon will collect all metrics and send them to all subscribed actors. tick-interval = 1 second + # Time interval at which Kamon will record values for all registered gauges. + gauge-recording-interval = 100 milliseconds + + dispatchers { + + # All Gauges record values periodically according to the `kamon.metrics.gauge-recording-interval` setting. + # This dispatcher is the one to be used to execute the recording code. + gauge-recordings = "akka.actor.default-dispatcher" + + # Dispatcher for the actor managing all subscriptions and metrics collection. + metric-subscriptions = "akka.actor.default-dispatcher" + } + + filters = [ { actor { @@ -56,34 +72,8 @@ kamon { } } - default-dispatcher { - # Dispatcher is the name of the event-based dispatcher - type = Dispatcher - - # What kind of ExecutionService to use - executor = "fork-join-executor" - - # Configuration for the fork join pool - fork-join-executor { - - # Min number of threads to cap factor-based parallelism number to - parallelism-min = 2 - - # Parallelism (threads) ... ceil(available processors * factor) - parallelism-factor = 2.0 - - # Max number of threads to cap factor-based parallelism number to - parallelism-max = 10 - } - - # Throughput defines the maximum number of messages to be - # processed per actor before the thread jumps to the next actor. - # Set to 1 for as fair as possible. - throughput = 100 - } - - trace { + # If ask-pattern-tracing is enabled, a WARN level log message will be generated if a future generated by the `ask` # pattern fails with a `AskTimeoutException` and the log message will contain a stack trace captured at the moment # the future was created. @@ -91,6 +81,7 @@ kamon { } weaver { + # AspectJ options supported by LTW # showWeaveInfo: show informational messages whenever the weaver touches a class file. # verbose: show informational messages about the weaving process. -- cgit v1.2.3