public class GraphiteReporter extends ScheduledReporter
Modifier and Type | Class and Description |
---|---|
static class |
GraphiteReporter.Builder
A builder for
GraphiteReporter instances. |
Modifier and Type | Method and Description |
---|---|
static GraphiteReporter.Builder |
forRegistry(MetricRegistry registry)
Returns a new
GraphiteReporter.Builder for GraphiteReporter . |
void |
report(SortedMap<String,Gauge> gauges,
SortedMap<String,Counter> counters,
SortedMap<String,Histogram> histograms,
SortedMap<String,Meter> meters,
SortedMap<String,Timer> timers)
Called periodically by the polling thread.
|
void |
stop()
Stops the reporter and shuts down its thread of execution.
|
close, convertDuration, convertRate, getDurationUnit, getRateUnit, report, start
public static GraphiteReporter.Builder forRegistry(MetricRegistry registry)
GraphiteReporter.Builder
for GraphiteReporter
.registry
- the registry to reportGraphiteReporter.Builder
instance for a GraphiteReporter
public void report(SortedMap<String,Gauge> gauges, SortedMap<String,Counter> counters, SortedMap<String,Histogram> histograms, SortedMap<String,Meter> meters, SortedMap<String,Timer> timers)
ScheduledReporter
report
in class ScheduledReporter
gauges
- all of the gauges in the registrycounters
- all of the counters in the registryhistograms
- all of the histograms in the registrymeters
- all of the meters in the registrytimers
- all of the timers in the registrypublic void stop()
ScheduledReporter
stop
in class ScheduledReporter
Copyright © 2014. All Rights Reserved.