From 565cdbfd0b1c7211f9a054edc399b8527a889aac Mon Sep 17 00:00:00 2001 From: Daniel Schroeter Date: Fri, 28 Aug 2020 12:00:05 +0200 Subject: [PATCH] Allows to disable the akka remote sharding metrics independent from akka-remote context propagation (this is done in the same manner as kamon-system-metrics are configurable) --- .../src/common/resources/reference.conf | 23 +++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/instrumentation/kamon-akka/src/common/resources/reference.conf b/instrumentation/kamon-akka/src/common/resources/reference.conf index d93b9567c..7053df15c 100644 --- a/instrumentation/kamon-akka/src/common/resources/reference.conf +++ b/instrumentation/kamon-akka/src/common/resources/reference.conf @@ -118,7 +118,6 @@ kamon.instrumentation.akka { } cluster-sharding { - # Sets the interval at which the Shard metrics (sampling of hosted entities and processed messages across all # shards) will be sampled. shard-metrics-sample-interval = ${kamon.metric.tick-interval} @@ -130,6 +129,7 @@ kanela.modules { akka { name = "Akka Instrumentation" description = "Provides metrics and message tracing for Akka Actor Systems, Actors, Routers and Dispatchers" + enabled = yes instrumentations = [ "kamon.instrumentation.akka.instrumentations.EnvelopeInstrumentation", @@ -156,10 +156,10 @@ kanela.modules { akka-remote { name = "Akka Remote Instrumentation" description = "Provides distributed Context propagation and Cluster Metrics for Akka" + enabled = yes instrumentations = [ "kamon.instrumentation.akka.remote.MessageBufferInstrumentation", - "kamon.instrumentation.akka.remote.ShardingInstrumentation", "kamon.instrumentation.akka.instrumentations.akka_25.remote.RemotingInstrumentation" "kamon.instrumentation.akka.instrumentations.akka_26.remote.RemotingInstrumentation" ] @@ -173,4 +173,23 @@ kanela.modules { "akka.serialization..*" ] } + + akka-remote-sharding { + name = "Akka Remote Cluster Sharding Monitoring" + description = "Provides cluster sharding metrics for Akka" + enabled = yes + + instrumentations = [ + "kamon.instrumentation.akka.remote.ShardingInstrumentation" + ] + + within = [ + "akka.dispatch..*", + "akka.util..*", + "akka.remote..*", + "akka.actor..*" + "akka.cluster..*" + "akka.serialization..*" + ] + } } \ No newline at end of file