Skip to content
This repository has been archived by the owner on Mar 29, 2020. It is now read-only.

Commit

Permalink
updagrade to OSHI 4.2.1, fixes #28
Browse files Browse the repository at this point in the history
  • Loading branch information
ivantopo committed Nov 16, 2019
1 parent 5a4c57d commit 086fc21
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* =========================================================================================
*/

val kamonCore = "io.kamon" %% "kamon-core" % "2.0.0"
val logback = "ch.qos.logback" % "logback-classic" % "1.0.13"
val oshi = "com.github.oshi" % "oshi-core" % "3.13.2"
val kamonCore = "io.kamon" %% "kamon-core" % "2.0.1"
val logback = "ch.qos.logback" % "logback-classic" % "1.2.3"
val oshi = "com.github.oshi" % "oshi-core" % "4.2.1"

name := "kamon-system-metrics"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ class HostMetricsCollector(ec: ExecutionContext) extends Module {
_memoryInstruments.free.update(memory.getAvailable())
_memoryInstruments.used.update(memory.getTotal() - memory.getAvailable())

_swapInstruments.total.update(memory.getSwapTotal())
_swapInstruments.free.update(memory.getSwapUsed())
_swapInstruments.used.update(memory.getSwapTotal() - memory.getSwapUsed())
_swapInstruments.total.update(memory.getVirtualMemory.getSwapTotal())
_swapInstruments.free.update(memory.getVirtualMemory.getSwapUsed())
_swapInstruments.used.update(memory.getVirtualMemory.getSwapTotal() - memory.getVirtualMemory.getSwapUsed())
}

private def recordLoadAverage(): Unit = {
Expand Down

0 comments on commit 086fc21

Please sign in to comment.