Sends dropwizard metrics to InfluxDB
Usage:
libraryDependencies += "com.advancedtelematic" %% "libats-metrics" % "version"
libraryDependencies += "com.advancedtelematic" %% "libats-metrics-akka" % "version"
import com.advancedtelematic.metrics.InfluxDbMetricsReporter
import com.advancedtelematic.metrics.{ AkkaHttpMetricsSink, DropwizardMetrics, InfluxDbMetricsReporter, InfluxDbMetricsReporterSettings }
val cfg: InfluxDbMetricsReporterSettings = ???
InfluxDbMetricsReporter.start(cfg, DropwizardMetrics.registry, AkkaHttpMetricsSink.apply(cfg))
If DropwizardMetrics.registry
is used, following JVM metrics are reported:
- garbage collections
- memory usage
- thread states
- CPU load (unix only)