diff options
author | Diego <diegolparra@gmail.com> | 2014-11-21 14:54:50 -0300 |
---|---|---|
committer | Diego <diegolparra@gmail.com> | 2014-11-21 14:54:50 -0300 |
commit | bbd49fd9e94a20d38b3ef95bef4dba15c74ea3be (patch) | |
tree | 3404c0a9c0a8ca42c489dc480efb3852da405ae0 /kamon-system-metrics/src/test/scala/kamon/metrics | |
parent | 985f26cbb28f117a9a3ada795005121d6149f5f3 (diff) | |
download | Kamon-bbd49fd9e94a20d38b3ef95bef4dba15c74ea3be.tar.gz Kamon-bbd49fd9e94a20d38b3ef95bef4dba15c74ea3be.tar.bz2 Kamon-bbd49fd9e94a20d38b3ef95bef4dba15c74ea3be.zip |
+ system-metrics: introduce stolen metric
Diffstat (limited to 'kamon-system-metrics/src/test/scala/kamon/metrics')
-rw-r--r-- | kamon-system-metrics/src/test/scala/kamon/metrics/SystemMetricsSpec.scala | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/kamon-system-metrics/src/test/scala/kamon/metrics/SystemMetricsSpec.scala b/kamon-system-metrics/src/test/scala/kamon/metrics/SystemMetricsSpec.scala index 4f7867ed..2d140a28 100644 --- a/kamon-system-metrics/src/test/scala/kamon/metrics/SystemMetricsSpec.scala +++ b/kamon-system-metrics/src/test/scala/kamon/metrics/SystemMetricsSpec.scala @@ -64,6 +64,10 @@ class SystemMetricsSpec extends TestKitBase with WordSpecLike with Matchers { | highest-trackable-value = 999999999 | significant-value-digits = 2 | } + | stolen { + | highest-trackable-value = 999999999 + | significant-value-digits = 2 + | } | } | process-cpu { | user { @@ -162,7 +166,7 @@ class SystemMetricsSpec extends TestKitBase with WordSpecLike with Matchers { """.stripMargin)) "the Kamon CPU Metrics" should { - "record user, system, wait, idle metrics" in new CPUMetricsListenerFixture { + "record user, system, wait, idle, stolen metrics" in new CPUMetricsListenerFixture { val metricsListener = subscribeToMetrics() val CPUMetrics = expectCPUMetrics(metricsListener, 3 seconds) @@ -170,6 +174,7 @@ class SystemMetricsSpec extends TestKitBase with WordSpecLike with Matchers { CPUMetrics.system.max should be >= 0L CPUMetrics.cpuWait.max should be >= 0L CPUMetrics.idle.max should be >= 0L + CPUMetrics.stolen.max should be >= 0L } } "the Kamon GC Metrics" should { |