diff options
author | Diego <diegolparra@gmail.com> | 2015-12-17 14:26:16 -0300 |
---|---|---|
committer | Diego <diegolparra@gmail.com> | 2015-12-17 14:26:16 -0300 |
commit | 07ed77a81b5bdbef9bd9d23628f4aa8196e9f3a2 (patch) | |
tree | b95bbc35c75b69c28c53cbcf543feb8fe1542fba /kamon-system-metrics/src/main/scala/kamon/system | |
parent | 1c9769187366dfc1b75b355b2e876fd8f3d95198 (diff) | |
download | Kamon-07ed77a81b5bdbef9bd9d23628f4aa8196e9f3a2.tar.gz Kamon-07ed77a81b5bdbef9bd9d23628f4aa8196e9f3a2.tar.bz2 Kamon-07ed77a81b5bdbef9bd9d23628f4aa8196e9f3a2.zip |
! system-metrics: change unit in ClassLoadingMetrics and close #297
Diffstat (limited to 'kamon-system-metrics/src/main/scala/kamon/system')
-rw-r--r-- | kamon-system-metrics/src/main/scala/kamon/system/jmx/ClassLoadingMetrics.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kamon-system-metrics/src/main/scala/kamon/system/jmx/ClassLoadingMetrics.scala b/kamon-system-metrics/src/main/scala/kamon/system/jmx/ClassLoadingMetrics.scala index 568f1b71..e2ef18f8 100644 --- a/kamon-system-metrics/src/main/scala/kamon/system/jmx/ClassLoadingMetrics.scala +++ b/kamon-system-metrics/src/main/scala/kamon/system/jmx/ClassLoadingMetrics.scala @@ -28,15 +28,15 @@ import kamon.metric.instrument.{ Memory, InstrumentFactory } class ClassLoadingMetrics(instrumentFactory: InstrumentFactory) extends GenericEntityRecorder(instrumentFactory) { val classLoadingBean = ManagementFactory.getClassLoadingMXBean - gauge("classes-loaded", Memory.Bytes, () ⇒ { + gauge("classes-loaded", () ⇒ { classLoadingBean.getTotalLoadedClassCount }) - gauge("classes-unloaded", Memory.Bytes, () ⇒ { + gauge("classes-unloaded", () ⇒ { classLoadingBean.getUnloadedClassCount }) - gauge("classes-currently-loaded", Memory.Bytes, () ⇒ { + gauge("classes-currently-loaded", () ⇒ { classLoadingBean.getLoadedClassCount.toLong }) |