enable kamon influxdb backend
parent
28c7120373
commit
f5b5679368
|
@ -757,11 +757,49 @@ kamon {
|
|||
}
|
||||
}
|
||||
|
||||
influxdb {
|
||||
hostname = "127.0.0.1"
|
||||
port = 8086
|
||||
|
||||
# The maximum packet size for one POST request, set to 0 to disable batching
|
||||
max-packet-size = 16384
|
||||
|
||||
# The protocol, either http or udp
|
||||
protocol = "udb"
|
||||
|
||||
# The measurements will be named ${application-name}-timers and -counters
|
||||
application-name = "dev"
|
||||
|
||||
# Allow users to override the name of the hostname reported by kamon. When changed, the hostname tag will be
|
||||
# the value given here.
|
||||
hostname-override = none
|
||||
|
||||
# For histograms, which percentiles to count
|
||||
percentiles = [50.0, 70.0, 90.0, 95.0, 99.0, 99.9]
|
||||
|
||||
# Subscription patterns used to select which metrics will be pushed to InfluxDB. Note that first, metrics
|
||||
# collection for your desired entities must be activated under the kamon.metrics.filters settings.
|
||||
subscriptions {
|
||||
histogram = [ "**" ]
|
||||
min-max-counter = [ "**" ]
|
||||
gauge = [ "**" ]
|
||||
counter = [ "**" ]
|
||||
trace = [ "**" ]
|
||||
trace-segment = [ "**" ]
|
||||
akka-actor = [ "**" ]
|
||||
akka-dispatcher = [ "**" ]
|
||||
akka-router = [ "**" ]
|
||||
system-metric = [ "**" ]
|
||||
http-server = [ "**" ]
|
||||
}
|
||||
}
|
||||
|
||||
modules {
|
||||
kamon-statsd {
|
||||
auto-start = no
|
||||
requires-aspectj = no
|
||||
extension-id = "kamon.statsd.StatsD"
|
||||
}
|
||||
kamon-influxdb {
|
||||
auto-start = no
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -35,7 +35,8 @@ object ApplicationBuild extends Build {
|
|||
scalaz, scalalib, hasher, config, apache,
|
||||
jgit, findbugs, reactivemongo.driver, reactivemongo.iteratees, akka.actor, akka.slf4j,
|
||||
spray.caching, maxmind, prismic,
|
||||
kamon.core, kamon.statsd, java8compat, semver, scrimage),
|
||||
kamon.core, kamon.statsd, kamon.influxdb,
|
||||
java8compat, semver, scrimage),
|
||||
TwirlKeys.templateImports ++= Seq(
|
||||
"lila.game.{ Game, Player, Pov }",
|
||||
"lila.tournament.Tournament",
|
||||
|
@ -70,7 +71,7 @@ object ApplicationBuild extends Build {
|
|||
libraryDependencies ++= provided(
|
||||
play.api, hasher, config, apache, jgit, findbugs,
|
||||
reactivemongo.driver, reactivemongo.iteratees,
|
||||
kamon.core, kamon.statsd)
|
||||
kamon.core, kamon.statsd, kamon.influxdb)
|
||||
) aggregate (moduleRefs: _*)
|
||||
|
||||
lazy val puzzle = project("puzzle", Seq(
|
||||
|
|
|
@ -65,5 +65,6 @@ object Dependencies {
|
|||
val version = "0.6.3"
|
||||
val core = "io.kamon" %% "kamon-core" % version
|
||||
val statsd = "io.kamon" %% "kamon-statsd" % version
|
||||
val influxdb = "io.kamon" %% "kamon-influxdb" % version
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue