diff options
author | Diego <diegolparra@gmail.com> | 2014-12-06 17:50:44 -0300 |
---|---|---|
committer | Diego <diegolparra@gmail.com> | 2014-12-06 17:50:44 -0300 |
commit | 9b0bf679201c6831855ca54e20d92e5495789943 (patch) | |
tree | 5fd8d8a038f70da10c1b0784381866658e41a3ef /kamon-system-metrics/src/test/scala/kamon/metrics | |
parent | e828ee9f33c65063775a7b84da91d8e073b7600a (diff) | |
download | Kamon-9b0bf679201c6831855ca54e20d92e5495789943.tar.gz Kamon-9b0bf679201c6831855ca54e20d92e5495789943.tar.bz2 Kamon-9b0bf679201c6831855ca54e20d92e5495789943.zip |
+ system-metrics: include RxDropped and TxDropped in NetworkMetrics
Diffstat (limited to 'kamon-system-metrics/src/test/scala/kamon/metrics')
-rw-r--r-- | kamon-system-metrics/src/test/scala/kamon/metrics/SystemMetricsSpec.scala | 12 |
1 files changed, 11 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 714a1e6d..5f0c4a10 100644 --- a/kamon-system-metrics/src/test/scala/kamon/metrics/SystemMetricsSpec.scala +++ b/kamon-system-metrics/src/test/scala/kamon/metrics/SystemMetricsSpec.scala @@ -136,6 +136,14 @@ class SystemMetricsSpec extends TestKitBase with WordSpecLike with Matchers with | highest-trackable-value = 3600000000000 | significant-value-digits = 2 | } + | rx-dropped { + | highest-trackable-value = 3600000000000 + | significant-value-digits = 2 + | } + | tx-dropped { + | highest-trackable-value = 3600000000000 + | significant-value-digits = 2 + | } | } | heap { | used { @@ -213,7 +221,7 @@ class SystemMetricsSpec extends TestKitBase with WordSpecLike with Matchers with } "the Kamon Network Metrics" should { - "record rxBytes, txBytes, rxErrors, txErrors metrics" in new NetworkMetricsListenerFixture { + "record rxBytes, txBytes, rxErrors, txErrors, rxDropped, txDropped metrics" in new NetworkMetricsListenerFixture { val metricsListener = subscribeToMetrics() val NetworkMetrics = expectNetworkMetrics(metricsListener, 3 seconds) @@ -221,6 +229,8 @@ class SystemMetricsSpec extends TestKitBase with WordSpecLike with Matchers with NetworkMetrics.txBytes.max should be >= 0L NetworkMetrics.rxErrors.max should be >= 0L NetworkMetrics.txErrors.max should be >= 0L + NetworkMetrics.rxDropped.max should be >= 0L + NetworkMetrics.txDropped.max should be >= 0L } } |