hostname = "123.456.99.100"
port = 32769
But the dashboard shows $app and $hostname, and there are no datapoints in the graph.
Any idea what I'm missing? Thanks.
--
You received this message because you are subscribed to the Google Groups "kamon-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kamon-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<dependency>
<groupId>io.kamon</groupId>
<artifactId>kamon-scala_2.10</artifactId>
<version>0.4.0</version>
</dependency>
<dependency>
<groupId>io.kamon</groupId>
<artifactId>kamon-akka_2.10</artifactId>
<version>0.4.0</version>
</dependency>
and got this
Exception in thread "main" java.lang.NoSuchMethodError: kamon.scala.instrumentation.FutureInstrumentation.aspectOf()Lkamon/scala/instrumentation/FutureInstrumentation;
at scala.concurrent.impl.CallbackRunnable.<init>(Promise.scala:28)
at scala.concurrent.impl.Promise$DefaultPromise.onComplete(Promise.scala:269)
at akka.actor.ActorSystemImpl.terminationCallbacks$lzycompute(ActorSystem.scala:639)
java -cp "/srv/osgi" -Dconfig.file=/srv/osgi/xyz-service-app.conf -javaagent:/srv/osgi/aspectjweaver-1.8.4.jar -jar target/xyz-service-app-1.0-SNAPSHOT.jar
val customConfig = ConfigFactory.load("xyz-service-app")
Kamon.start(customConfig.withFallback(ConfigFactory.load()))
implicit lazy val system = ActorSystem("xyz")
Config as shown below, and I get no actor metrics or dispatcher metrics in the log file, but do get system metrics (even though log-reporter.report-system-metrics is false, oddly enough)
kamon {
internal-config {
akka.loggers = ["akka.event.slf4j.Slf4jLogger"]
}
metric {
# tick-interval = 60 seconds
tick-interval = 10 seconds
filters {
akka-actor {
includes = [ "xyz/user/**" ]
excludes = []
}
akka-dispatcher {
includes = [ "alarms/akka.actor.default-dispatcher" ]
}
trace {
includes = [ "*" ]
excludes = []
}
}
}
log-reporter {
# Enable system metrics
# In order to not get a ClassNotFoundException, we must register the kamon-sytem-metrics module
report-system-metrics = false
}
statsd {
# Hostname and port in which your StatsD is running. Remember that StatsD packets are sent using UDP and
# setting unreachable hosts and/or not open ports wont be warned by the Kamon, your data wont go anywhere.
hostname = "123.456.99.100"
port = 32769
# Interval between metrics data flushes to StatsD. It's value must be equal or greater than the
# kamon.metrics.tick-interval setting.
flush-interval = 60 seconds
# Max packet size for UDP metrics data sent to StatsD.
max-packet-size = 1024 bytes
# Subscription patterns used to select which metrics will be pushed to StatsD. Note that first, metrics
# collection for your desired entities must be activated under the kamon.metrics.filters settings.
includes {
actor = [ "*" ]
trace = [ "*" ]
dispatcher = [ "*" ]
}
simple-metric-key-generator {
# Application prefix for all metrics pushed to StatsD. The default namespacing scheme for metrics follows
# this pattern:
# application.host.entity.entity-name.metric-name
application = "xyz"
}
}
include "application"
<generated stuff>
include "xyz-service-app-overrides"
val customConfig = ConfigFactory.load("xyz-service-app")
val configWithFallBack = customConfig.withFallback(ConfigFactory.load("application")).withFallback(ConfigFactory.defaultReference)
val k = configWithFallBack.getConfig("kamon")
println(s"k == $k")
Kamon.start(configWithFallBack)