-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #64 - wires Rest, Http, Metric modules through MacWire.
- Loading branch information
Alexander Weber
committed
Apr 21, 2016
1 parent
7e2aaf0
commit 854d1ed
Showing
7 changed files
with
59 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
src/main/scala/mesosphere/chaos/metrics/impl/DefaultBufferPoolMetricSet.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package mesosphere.chaos.metrics.impl | ||
|
||
import java.lang.management.ManagementFactory | ||
import com.codahale.metrics.jvm.BufferPoolMetricSet | ||
|
||
class DefaultBufferPoolMetricSet extends BufferPoolMetricSet(ManagementFactory.getPlatformMBeanServer) |
17 changes: 17 additions & 0 deletions
17
src/main/scala/mesosphere/chaos/metrics/impl/DefaultMetricRegistry.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package mesosphere.chaos.metrics.impl | ||
|
||
import com.codahale.metrics.MetricRegistry | ||
import com.codahale.metrics.jvm.ThreadStatesGaugeSet | ||
import com.codahale.metrics.jvm.MemoryUsageGaugeSet | ||
import com.codahale.metrics.jvm.BufferPoolMetricSet | ||
import com.codahale.metrics.jvm.GarbageCollectorMetricSet | ||
|
||
class DefaultMetricRegistry(garbageCollectorMetricSet: GarbageCollectorMetricSet, | ||
bufferPoolMetricSet: BufferPoolMetricSet, | ||
memoryUsageGaugeSet: MemoryUsageGaugeSet, | ||
threadStatesGaugeSet: ThreadStatesGaugeSet) extends MetricRegistry { | ||
register("jvm.gc", garbageCollectorMetricSet) | ||
register("jvm.buffers", bufferPoolMetricSet) | ||
register("jvm.memory", memoryUsageGaugeSet) | ||
register("jvm.threads", threadStatesGaugeSet) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters