aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kamon-statsd/src/main/scala/kamon/statsd/StatsD.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/kamon-statsd/src/main/scala/kamon/statsd/StatsD.scala b/kamon-statsd/src/main/scala/kamon/statsd/StatsD.scala
index e92cb546..a465de52 100644
--- a/kamon-statsd/src/main/scala/kamon/statsd/StatsD.scala
+++ b/kamon-statsd/src/main/scala/kamon/statsd/StatsD.scala
@@ -81,7 +81,7 @@ class StatsDExtension(system: ExtendedActorSystem) extends Kamon.Extension {
// Subscribe to SystemMetrics
val includeSystemMetrics = statsDConfig.getBoolean("report-system-metrics")
if (includeSystemMetrics) {
- List(CPUMetrics, ProcessCPUMetrics, MemoryMetrics, NetworkMetrics, GCMetrics, HeapMetrics) foreach { metric ⇒
+ Seq(CPUMetrics, ProcessCPUMetrics, MemoryMetrics, NetworkMetrics, GCMetrics, HeapMetrics, ContextSwitchesMetrics) foreach { metric ⇒
Kamon(Metrics)(system).subscribe(metric, "*", statsDMetricsListener, permanently = true)
}
}