public class CodahaleMetricWriter extends Object implements MetricWriter
MetricWriter
that send data to a Codahale MetricRegistry
based on a
naming convention:
increment(Delta)
with names in "meter.*" are treated as
Meter
eventsCounter
valuesset(Metric)
with names in "histogram.*" are treated as
Histogram
updatesset(Metric)
with names in "timer.*" are treated as Timer
updatesGauge
values (single valued
measurements of type double)Constructor and Description |
---|
CodahaleMetricWriter(MetricRegistry registry)
Create a new
CodahaleMetricWriter instance. |
public CodahaleMetricWriter(MetricRegistry registry)
CodahaleMetricWriter
instance.registry
- the underlying metric registrypublic void increment(Delta<?> delta)
increment
in interface MetricWriter
public void set(Metric<?> value)
set
in interface MetricWriter
public void reset(String metricName)
reset
in interface MetricWriter
Copyright © 2014. All rights reserved.