Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 734 Bytes

README.md

File metadata and controls

19 lines (16 loc) · 734 Bytes

libats-metrics

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)