This project has retired. For details please refer to its Attic page.
Codahale Metrics
Polygene™
Introduction
Tutorials
Javadoc
Samples
Core
Libraries
Extensions
Tools
Glossary 

Codahale Metrics

code

docs

tests

Metrics extension backed by the Codahale metrics library maintained by the Dropwizard folks.

Table 68. Artifact

Group IDArtifact IDVersion

org.apache.polygene.extensions

org.apache.polygene.extension.metrics-codahale

3.0.0


Assembly

Assembly is done using the provided Assembler:

return new CodahaleMetricsAssembler();

Reporting to Ganglia or Graphite

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();