[英]Kamon JVM and OS Metrics in docker-grafana-graphite
Im trying to monitor my scala akka app in the docker-grafana-graphite using kamon. 我试图使用kamon在docker -grafana-graphite中监视我的Scala akka应用程序。 I can see the actors stats in the Kamon Dashboard but I can't see any data in the System dashboard (JVM & OS) 我可以在Kamon仪表板中看到actor的统计信息,但是在系统仪表板(JVM和OS)中看不到任何数据
Here is my build.sbt file: 这是我的build.sbt文件:
import com.typesafe.sbt.SbtAspectj._
name := """kinneret"""
scalaVersion := "2.11.6"
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"
val akkaVersion = "2.3.9"
val kamonVersion = "0.3.4"
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-slf4j" % akkaVersion,
"com.typesafe.akka" %% "akka-actor" % akkaVersion,
"io.kamon" %% "kamon-core" % kamonVersion,
"io.kamon" %% "kamon-statsd" % kamonVersion,
"io.kamon" %% "kamon-play" % kamonVersion,
"io.kamon" %% "kamon-log-reporter" % kamonVersion,
"io.kamon" %% "kamon-system-metrics" % kamonVersion,
"org.aspectj" % "aspectjweaver" % "1.8.1"
)
aspectjSettings
javaOptions <++= AspectjKeys.weaverOptions in Aspectj
fork in run := true
this is my configuration file: 这是我的配置文件:
akka {
loglevel = INFO
extensions = ["kamon.metric.Metrics", "kamon.statsd.StatsD", "kamon.system.SystemMetrics", "kamon.logreporter.LogReporter"]
}
# Kamon Metrics
# ~~~~~~~~~~~~~~
kamon {
metrics {
filters = [
{
actor {
includes = [ "*"]
excludes = []
}
},
{
trace {
includes = [ "*" ]
excludes = []
}
}
]
}
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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 = "192.168.59.103"
port = 8125
# Interval between metrics data flushes to StatsD. It's value must be equal or greater than the
# kamon.metrics.tick-interval setting.
flush-interval = 1 second
# 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 = "kinneret"
}
}
}
I'm using Mac(Yosemite) and i'm running docker using boot2docker. 我正在使用Mac(Yosemite),并且正在使用boot2docker运行docker。 boot2docker ip is 192.168.59.103. boot2docker ip是192.168.59.103。
What do i need to add in order to see the OS & JVM stats in the docker dashboard? 我需要添加什么才能在Docker仪表板中查看OS和JVM统计信息?
Thanks. 谢谢。
Comparing your config setup to mine which works, I think you are missing the following config property: 将配置设置与我的配置设置进行比较,我认为您缺少以下config属性:
kamon {
...
statsd {
...
report-system-metrics = true
...
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.