code
docs
tests
Metrics extension backed by the Codahale metrics library maintained by the Dropwizard folks.
Table 68. Artifact
| Group ID | Artifact ID | Version |
|---|---|---|
org.apache.polygene.extensions | org.apache.polygene.extension.metrics-codahale | 3.0.0 |
Dropwizard provide metrics reporter for Ganglia or Graphite, see the official documentation for details.
To register reporters you need a handle to the underlying MetricsRegistry, the CodahaleMetricsProvider service
provide accessor to it:
CodahaleMetricsProvider metricsProvider = module.findService( CodahaleMetricsProvider.class ).get();
[...snip...]
MetricRegistry metricRegistry = metricsProvider.metricRegistry();