Skip to content

Commit

Permalink
Merge pull request #841 from danischroeter/akkaShardingMetricsOptional
Browse files Browse the repository at this point in the history
Allows to disable the akka remote sharding metrics
  • Loading branch information
ivantopo authored Aug 28, 2020
2 parents 2e57045 + 565cdbf commit a9ecdd7
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions instrumentation/kamon-akka/src/common/resources/reference.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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",
Expand All @@ -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"
]
Expand All @@ -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..*"
]
}
}

0 comments on commit a9ecdd7

Please sign in to comment.