blob: 25c9bd8ebd75b8d2e50758b645fa95bce69bda94 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
package kamon.metric
import java.util.concurrent.TimeUnit
import com.codahale.metrics._
object Metrics {
val registry: MetricRegistry = new MetricRegistry
val consoleReporter = ConsoleReporter.forRegistry(registry)
val newrelicReporter = NewRelicReporter(registry)
newrelicReporter.start(5, TimeUnit.SECONDS)
//consoleReporter.build().start(5, TimeUnit.SECONDS)
}
object MetricDirectory {
def nameForDispatcher(actorSystem: String, dispatcher: String) = s"/ActorSystem/${actorSystem}/Dispatcher/${dispatcher}/"
}
|