Skip to content

Instantly share code, notes, and snippets.

@jairamc
Created March 30, 2017 13:22
Show Gist options
  • Save jairamc/3cb4855b1d0ecf28d454e94858f3b9ce to your computer and use it in GitHub Desktop.
Save jairamc/3cb4855b1d0ecf28d454e94858f3b9ce to your computer and use it in GitHub Desktop.
kamon {
statsd {
hostname = "metrics"
port = 8125
flush-interval = 1 seconds
time-units = "ms"
subscriptions {
jdbc = [ "**" ]
}
}
metric {
tick-interval = 1 second
}
modules {
kamon-log-reporter.auto-start = true
kamon-jdbc.auto-start = true
}
jdbc {
slow-query-threshold = 2 seconds
# Fully qualified name of the implementation of kamon.jdbc.SlowQueryProcessor.
slow-query-processor = kamon.jdbc.DefaultSlowQueryProcessor
# Fully qualified name of the implementation of kamon.jdbc.SqlErrorProcessor.
sql-error-processor = kamon.jdbc.DefaultSqlErrorProcessor
# Fully qualified name of the implementation of kamon.jdbc.JdbcNameGenerator that will be used for assigning names to segments.
name-generator = kamon.jdbc.DefaultJdbcNameGenerator
}
}
h2mem1 = {
url = "jdbc:h2:mem:test1"
driver = org.h2.Driver
connectionPool = disabled
keepAliveConnection = true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment