diff options
author | Ivan Topolnak <ivantopo@gmail.com> | 2013-06-13 18:24:04 -0300 |
---|---|---|
committer | Ivan Topolnak <ivantopo@gmail.com> | 2013-06-13 18:24:04 -0300 |
commit | 80725fd14a728c6afcc9d8b3ac7c4bd10e8bd05e (patch) | |
tree | 3a576d68682ba76b2296ceccd18a2b077197fbb2 /src/main/scala/kamon/metric/ExecutorServiceMetricCollector.scala | |
parent | 84c9ae342ea4a280b0033d9d78239b19b01b728f (diff) | |
download | Kamon-80725fd14a728c6afcc9d8b3ac7c4bd10e8bd05e.tar.gz Kamon-80725fd14a728c6afcc9d8b3ac7c4bd10e8bd05e.tar.bz2 Kamon-80725fd14a728c6afcc9d8b3ac7c4bd10e8bd05e.zip |
wip
Diffstat (limited to 'src/main/scala/kamon/metric/ExecutorServiceMetricCollector.scala')
-rw-r--r-- | src/main/scala/kamon/metric/ExecutorServiceMetricCollector.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/scala/kamon/metric/ExecutorServiceMetricCollector.scala b/src/main/scala/kamon/metric/ExecutorServiceMetricCollector.scala index 78711267..54a13f39 100644 --- a/src/main/scala/kamon/metric/ExecutorServiceMetricCollector.scala +++ b/src/main/scala/kamon/metric/ExecutorServiceMetricCollector.scala @@ -34,7 +34,7 @@ trait ForkJoinPoolMetricCollector { fullName + activeThreads -> forkJoinPoolGauge(_.getActiveThreadCount) ) - allMetrics.foreach(kv => Metrics.registry.register(kv._1, kv._2)) + allMetrics.foreach { case (name, metric) => Metrics.registry.register(name, metric) } } } @@ -51,15 +51,15 @@ trait ThreadPoolExecutorMetricCollector { fullName + activeThreads -> tpeGauge(_.getActiveCount) ) - allMetrics.foreach(kv => Metrics.registry.register(kv._1, kv._2)) + allMetrics.foreach { case (name, metric) => Metrics.registry.register(name, metric) } } } object BasicExecutorMetricNames { val queueSize = "queueSize" - val poolSize = "poolSize" - val activeThreads = "activeThreads" + val poolSize = "threads/poolSize" + val activeThreads = "threads/activeThreads" } |