Class GraphiteReporter
java.lang.Object
com.codahale.metrics.ScheduledReporter
com.codahale.metrics.graphite.GraphiteReporter
- All Implemented Interfaces:
Closeable, AutoCloseable
A reporter which publishes metric values to a Graphite server.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic GraphiteReporter.BuilderforRegistry(MetricRegistry registry) Returns a newGraphiteReporter.BuilderforGraphiteReporter.voidreport(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.Methods inherited from class ScheduledReporter
close, convertDuration, convertRate, getDurationUnit, getRateUnit, report, start, stop
-
Method Details
-
forRegistry
Returns a newGraphiteReporter.BuilderforGraphiteReporter.- Parameters:
registry- the registry to report- Returns:
- a
GraphiteReporter.Builderinstance for aGraphiteReporter
-
report
public void report(SortedMap<String, Gauge> gauges, SortedMap<String, Counter> counters, SortedMap<String, Histogram> histograms, SortedMap<String, Meter> meters, SortedMap<String, Timer> timers) Description copied from class:ScheduledReporterCalled periodically by the polling thread. Subclasses should report all the given metrics.- Specified by:
reportin classScheduledReporter- Parameters:
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 registry
-