talira

Dropwizard Metrics

Capture JVM and application metrics in production

open sourceApache-2.0free

Metrics (Dropwizard Metrics) is a Java library for measuring what code does in production, started by Coda Hale at Yammer and now maintained by the Dropwizard team. It provides a toolkit for measuring the behaviour of critical components, with modules for common libraries such as Jetty, Logback, Log4j, Apache HttpClient, Ehcache, JDBI and Jersey, and reporters that send metrics to backends such as Graphite. Version 4.2 is the maintained line; a 5.x line with tags and new Maven coordinates is on pause. It's separate from the Dropwizard web framework, which uses it.

Problems it solves

  • measure request rates and latencies inside my Java service in production
  • collect JVM and application metrics and send them to Graphite
  • add timers and counters to a Java app without writing my own metrics code

Features

  • Toolkit for measuring critical components of a JVM application in production
  • Modules for Jetty, Logback, Log4j, Apache HttpClient, Ehcache, JDBI and Jersey
  • Reporters for backends such as Graphite

Limitations

  • Metrics 4.2 has no tags on metrics: tag support is planned for 5.x, whose development is on pause1

Alternatives

The same job

These do what Dropwizard Metrics does.

  1. Grafana Beyla eBPF-based auto-instrumentation: OpenTelemetry traces and RED metrics with no code changes
  2. Micrometer A vendor-neutral observability facade for JVM apps
  3. Pixie Instant Kubernetes-Native Application Observability

Compare Dropwizard Metrics with the top 3