Hi all, i am trying out this technology, but the Zipkin Server does not receive any data from my Scala Play App.
I have done the configuration for the Scala Play Framework:
// build.sbt
lazy val root = (project in file("."))
.enablePlugins(PlayScala, JavaAgent)
libraryDependencies ++= "io.kamon" %% "kamon-bundle" % "2.1.0",
// plugins.sbt
addSbtPlugin("io.kamon" % "sbt-kanela-runner-play-2.7" % "2.0.6")
// app.conf
kamon.zipkin {
# Hostname and port where the Zipkin Server is running
#
host = "localhost"
port = 9411
# Decides whether to use HTTP or HTTPS when connecting to Zipkin
protocol = "http"
}
And run a local zipkin server:
docker run -d -p 9411:9411 openzipkin/zipkin
But whenever I go on localhost:9411 i do not see any trace
Hi all, i am trying out this technology, but the Zipkin Server does not receive any data from my Scala Play App.
I have done the configuration for the Scala Play Framework:
// build.sbt lazy val root = (project in file(".")) .enablePlugins(PlayScala, JavaAgent) libraryDependencies ++= "io.kamon" %% "kamon-bundle" % "2.1.0", // plugins.sbt addSbtPlugin("io.kamon" % "sbt-kanela-runner-play-2.7" % "2.0.6") // app.conf kamon.zipkin { # Hostname and port where the Zipkin Server is running # host = "localhost" port = 9411 # Decides whether to use HTTP or HTTPS when connecting to Zipkin protocol = "http" }
And run a local zipkin server:
docker run -d -p 9411:9411 openzipkin/zipkin
But whenever I go on localhost:9411 i do not see any trace
I solved this by implementing Manual instrumentation. The automatic does not work... At least not for a simple Controller#action which does not do nothing
Hi, I'm trying to use kamon bundle (v2.1.4) in a akka project (akka v2.6.9) I'm usingjavaAgents += "io.kamon" % "kanela-agent" % "1.0.6"
in build.sbtaddSbtPlugin("io.kamon" % "sbt-kanela-runner" % "2.0.6")
in plugin.sbt
and Kamon.init() at the beginning of the main method, but I get this error
java.lang.ClassCastException: scala.util.Success cannot be cast to kamon.instrumentation.context.HasContext
I appreciate your help. Thank you
@sergio_noviello_twitter this is another possible solution: https://github.com/kamon-io/Kamon/issues/601#issuecomment-518596157
you could start the app with the -javaagent:kanela.jar option
I'm trying to setup Kamon 2.1.4 following Get Started
but I am getting
[error] Exception in thread "Host Metrics" java.lang.UnsatisfiedLinkError: Unable to load library 'DiskArbitration':
[error] dlopen(libDiskArbitration.dylib, 9): image not found
[error] dlopen(libDiskArbitration.dylib, 9): image not found
[error] Native library (darwin/libDiskArbitration.dylib) not found
My best guess is that this is because of macOS 11 (work laptop is in repair, and I have to use my private machine) and now I am hitting oshi/oshi#1289.
Is there a workaround? Where should post an issue to upgrade to the latest oshi version?
java.lang.IllegalStateException: Error during attachment using: kamon.lib.net.bytebuddy.agent.ByteBuddyAgent$AttachmentProvider$Compound@1d81e101
scala.util.Success cannot be cast to kamon.instrumentation.context.HasContext
The only thing initialized at the start is RollbarAppender, would this cause this problem? Also if I'm using sbt-native-packager do I still need Kamon.init() ?
Hi everyone, is it possible to use ScalaPlay+Kamon+Zipkin+Manual Instrumentation? I am able to make work the auto-instrumentation, but I can't figure out how to implement the manual one, which honestly is the most interesting. I followed this guide here, but with no success
https://kamon.io/docs/latest/guides/installation/manual-instrumentation/
I'm still confused if I add the kanela-agent do I still need Kamon.init() ? This is what I have in my build.sbt
javaAgents += "io.kamon" % "kanela-agent" % "1.0.6"
)
I'm having a very weird issue, I deployed my app on 7 k8s pods and the kamon traceID is missing on requests sent to some pods
@/all Hey folks! We (the few folks behind Kamon) are going to stop using Gitter in favor of Github Discussions. If you have any ideas, comments and questions please create a new discussion here: https://github.com/kamon-io/Kamon/discussions
Thanks a lot to everyone who has been hanging out here for years and helping other folks. I really hope to see you around Githubs Discussions as well :pray:
In case you are interested in why, just look at the little mess in the history of this channel :smile:.. We would like to keep all comments related to the same topic in the same context, and Gitter threads really fall short on helping us keep track of what has been answered or not. Have a nice day!
Hey guys what do you use for visualizing the metrics?
I'm using grafana and was facing some challenges.
The metric coming from kamon jvm.memory.used
is a histogram, not a gauge.
I'm not able to wrap my head around how to plot that in grafana.
Specifically, between these two, which one makes more sense
rate(jvm_memory_used_bytes_sum{job=~"$job", region="heap"}[$interval])/rate(jvm_memory_used_bytes_count{job=~"$job", region="heap"}[$interval])
and
jvm_memory_used_bytes_sum{job=~"$job", region="heap"}/jvm_memory_used_bytes_count{job=~"$job", region="heap"}
Basically Rate(sum)/Rate(count)
or simply sum/count
Looking in grafana, the first one goes more up and down and the second one is more of a flat line. I'm not sure which one is best suited here.