How to configurate akka actors monitoring

160 views
Skip to first unread message

nayden...@gmail.com

unread,
Oct 16, 2015, 12:45:36 PM10/16/15
to kamon-user
Hi. I'm trying to monitor a Akka application metrics (like message box sizes etc). But now I see only system metrics like CPU usage and so. I.m using "kamon.logreporter.LogReporter" extension and I see system metrics in STDOUT and in Grafana.
Do I need to add some configuration property for akka monitoring?

It's my conf files


======== build.sbt ==============
import com.typesafe.sbt.SbtAspectj._

name := "kamon-test"

version := "1.0"

libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor" % "2.3.14",
"com.typesafe.akka" %% "akka-slf4j" % "2.3.14"
)

libraryDependencies ++= Seq(
"io.kamon" %% "kamon-core" % "0.4.0",
"io.kamon" %% "kamon-akka" % "0.4.0",
"io.kamon" %% "kamon-statsd" % "0.4.0",
"io.kamon" %% "kamon-log-reporter" % "0.4.0",
"io.kamon" %% "kamon-system-metrics" % "0.4.0",
"org.aspectj" % "aspectjweaver" % "1.8.2"
)

libraryDependencies += "org.fusesource" % "sigar" % "1.6.4" classifier("native") classifier("")

aspectjSettings

javaOptions <++= AspectjKeys.weaverOptions in Aspectj

fork in run := true
=================================


======== application.conf =======
akka {
loglevel = DEBUG
extensions = ["kamon.metric.Metrics", "kamon.statsd.StatsD", "kamon.logreporter.LogReporter"]
}

kamon {
statsd {
hostname = "127.0.0.1"
port = 8125
simple-metric-key-generator {
application = "kamon"
}
report-system-metrics = true
flush-interval = 10 second
}
application-name = "kamon"
}
=================================

Inside my app I start kamon simple like "Kamon.start()" and after that I start my ActorSystem and some actors.

nayden...@gmail.com

unread,
Oct 16, 2015, 12:48:10 PM10/16/15
to kamon-user
Also I have exception

1 [main] DEBUG Sigar - no libsigar-amd64-linux.so in java.library.path
org.hyperic.sigar.SigarException: no libsigar-amd64-linux.so in java.library.path
at org.hyperic.sigar.Sigar.loadLibrary(Sigar.java:172)

But as I understand that this is not related to a lack of akka metrics.

nayden...@gmail.com

unread,
Oct 16, 2015, 12:56:01 PM10/16/15
to kamon-user, nayden...@gmail.com
And also I tried to use Kamon ver 0.5.2. This approch fix axception about absence of sigar lib.

But also I have exception about absense of "kamon.metric.Metrics"

java.lang.ClassNotFoundException: kamon.metric.Metrics

Reply all
Reply to author
Forward
0 new messages