This project has retired. For details please refer to its Attic page.
Codahale Metrics Starter Template for Bootstrap
Overview
javax.json serialization
javax.xml serialization
MessagePack serialization
Memory EntityStore
File EntityStore
Geode EntityStore
Hazelcast EntityStore
JClouds EntityStore
JDBM EntityStore
LevelDB EntityStore
MongoDB EntityStore
Preferences EntityStore
Redis EntityStore
Riak EntityStore
SQL EntityStore
Ehcache Cache
Memcache Cache
ElasticSearch Index/Query
OpenRDF Index/Query
Apache Solr Index/Query
SQL Index/Query
Codahale Metrics
Migration
Reindexer

Codahale Metrics

code

docs

tests

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

Table 69. Artifact

Group IDArtifact IDVersion

org.apache.polygene.extensions

org.apache.polygene.extension.metrics-codahale

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