diff options
Diffstat (limited to 'kamon-playground/src')
-rw-r--r-- | kamon-playground/src/main/resources/application.conf | 29 | ||||
-rw-r--r-- | kamon-playground/src/main/scala/test/SimpleRequestProcessor.scala | 3 |
2 files changed, 30 insertions, 2 deletions
diff --git a/kamon-playground/src/main/resources/application.conf b/kamon-playground/src/main/resources/application.conf index fb65721b..f0698592 100644 --- a/kamon-playground/src/main/resources/application.conf +++ b/kamon-playground/src/main/resources/application.conf @@ -1,6 +1,6 @@ akka { loggers = [ "akka.event.slf4j.Slf4jLogger" ] - loglevel = DEBUG + loglevel = INFO extensions = ["kamon.newrelic.NewRelic"] @@ -24,6 +24,33 @@ kamon { } } +kamon { + metrics { + tick-interval = 1 second + + filters = [ + { + actor { + includes = [ "user/simple-service-actor" ] + excludes = [ "system/*", "user/IO-*" ] + } + }, + { + trace { + includes = [ "*" ] + excludes = [] + } + }, + { + dispatcher { + includes = [ "default-dispatcher" ] + excludes = [] + } + } + ] + } + +} kamon { diff --git a/kamon-playground/src/main/scala/test/SimpleRequestProcessor.scala b/kamon-playground/src/main/scala/test/SimpleRequestProcessor.scala index fd0f3e4b..cdf663e8 100644 --- a/kamon-playground/src/main/scala/test/SimpleRequestProcessor.scala +++ b/kamon-playground/src/main/scala/test/SimpleRequestProcessor.scala @@ -42,7 +42,8 @@ object SimpleRequestProcessor extends App with SimpleRoutingApp with RequestBuil def receive: Actor.Receive = { case any ⇒ sender ! any } }), "com") - //Kamon(Metrics).subscribe(TraceMetrics, "*", printer, true) + Kamon(Metrics).subscribe(TraceMetrics, "*", printer, permanently = true) + Kamon(Metrics).subscribe(ActorMetrics, "*", printer, permanently = true) implicit val timeout = Timeout(30 seconds) |