public static class GangliaReporter.Builder extends Object
GangliaReporter instances. Defaults to using a tmax of 60,
a dmax of 0, converting rates to events/second, converting durations to
milliseconds, and not filtering metrics.| Modifier and Type | Method and Description |
|---|---|
GangliaReporter |
build(info.ganglia.gmetric4j.gmetric.GMetric ganglia)
Builds a
GangliaReporter with the given properties, announcing metrics to the
given GMetric client. |
GangliaReporter.Builder |
convertDurationsTo(TimeUnit durationUnit)
Convert durations to the given time unit.
|
GangliaReporter.Builder |
convertRatesTo(TimeUnit rateUnit)
Convert rates to the given time unit.
|
GangliaReporter.Builder |
filter(com.codahale.metrics.MetricFilter filter)
Only report metrics which match the given filter.
|
GangliaReporter.Builder |
prefixedWith(String prefix)
Prefix all metric names with the given string.
|
GangliaReporter.Builder |
withDMax(int dMax)
Use the given
dmax value when announcing metrics. |
GangliaReporter.Builder |
withTMax(int tMax)
Use the given
tmax value when announcing metrics. |
public GangliaReporter.Builder withTMax(int tMax)
tmax value when announcing metrics.tMax - the desired gmond tmax valuethispublic GangliaReporter.Builder prefixedWith(String prefix)
prefix - the prefix for all metric namesthispublic GangliaReporter.Builder withDMax(int dMax)
dmax value when announcing metrics.dMax - the desired gmond dmax valuethispublic GangliaReporter.Builder convertRatesTo(TimeUnit rateUnit)
rateUnit - a unit of timethispublic GangliaReporter.Builder convertDurationsTo(TimeUnit durationUnit)
durationUnit - a unit of timethispublic GangliaReporter.Builder filter(com.codahale.metrics.MetricFilter filter)
filter - a MetricFilterthispublic GangliaReporter build(info.ganglia.gmetric4j.gmetric.GMetric ganglia)
GangliaReporter with the given properties, announcing metrics to the
given GMetric client.ganglia - the client to use for announcing metricsGangliaReporterCopyright © 2013. All Rights Reserved.