Package io.dropwizard.metrics5.collectd
Class CollectdReporter
- java.lang.Object
-
- io.dropwizard.metrics5.ScheduledReporter
-
- io.dropwizard.metrics5.collectd.CollectdReporter
-
- All Implemented Interfaces:
io.dropwizard.metrics5.Reporter,Closeable,AutoCloseable
public class CollectdReporter extends io.dropwizard.metrics5.ScheduledReporterA reporter which publishes metric values to a Collectd server.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCollectdReporter.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CollectdReporter.BuilderforRegistry(io.dropwizard.metrics5.MetricRegistry registry)Returns a builder for the specified registry.voidreport(SortedMap<io.dropwizard.metrics5.MetricName,io.dropwizard.metrics5.Gauge<?>> gauges, SortedMap<io.dropwizard.metrics5.MetricName,io.dropwizard.metrics5.Counter> counters, SortedMap<io.dropwizard.metrics5.MetricName,io.dropwizard.metrics5.Histogram> histograms, SortedMap<io.dropwizard.metrics5.MetricName,io.dropwizard.metrics5.Meter> meters, SortedMap<io.dropwizard.metrics5.MetricName,io.dropwizard.metrics5.Timer> timers)voidstart(long period, TimeUnit unit)
-
-
-
Method Detail
-
forRegistry
public static CollectdReporter.Builder forRegistry(io.dropwizard.metrics5.MetricRegistry registry)
Returns a builder for the specified registry.The default settings are:
- hostName: InetAddress.getLocalHost().getHostName()
- executor: default executor created by
ScheduledReporter - shutdownExecutorOnStop: true
- clock: Clock.defaultClock()
- rateUnit: TimeUnit.SECONDS
- durationUnit: TimeUnit.MILLISECONDS
- filter: MetricFilter.ALL
- securityLevel: NONE
- username: ""
- password: ""
-
start
public void start(long period, TimeUnit unit)- Overrides:
startin classio.dropwizard.metrics5.ScheduledReporter
-
report
public void report(SortedMap<io.dropwizard.metrics5.MetricName,io.dropwizard.metrics5.Gauge<?>> gauges, SortedMap<io.dropwizard.metrics5.MetricName,io.dropwizard.metrics5.Counter> counters, SortedMap<io.dropwizard.metrics5.MetricName,io.dropwizard.metrics5.Histogram> histograms, SortedMap<io.dropwizard.metrics5.MetricName,io.dropwizard.metrics5.Meter> meters, SortedMap<io.dropwizard.metrics5.MetricName,io.dropwizard.metrics5.Timer> timers)
- Specified by:
reportin classio.dropwizard.metrics5.ScheduledReporter
-
-