public static class InfluxDbReporter.Builder extends Object
InfluxDbReporter instances. Defaults to not using a prefix, using the
default clock, converting rates to events/second, converting durations to milliseconds, and
not filtering metrics.| Modifier and Type | Method and Description |
|---|---|
InfluxDbReporter |
build(InfluxDbSender sender)
Builds a InfluxDbReporter with the given properties, sending metrics using the
given InfluxDbSender.
|
InfluxDbReporter.Builder |
convertDurationsTo(TimeUnit durationUnit)
Convert durations to the given time unit.
|
InfluxDbReporter.Builder |
convertRatesTo(TimeUnit rateUnit)
Convert rates to the given time unit.
|
InfluxDbReporter.Builder |
disabledMetricAttributes(Set<io.dropwizard.metrics5.MetricAttribute> disabledMetricAttributes)
Don't report the passed metric attributes for all metrics (e.g.
|
InfluxDbReporter.Builder |
filter(io.dropwizard.metrics5.MetricFilter filter)
Only report metrics which match the given filter.
|
InfluxDbReporter.Builder |
prefixedWith(io.dropwizard.metrics5.MetricName prefix)
Prefix all metric names with the given name.
|
InfluxDbReporter.Builder |
scheduleOn(ScheduledExecutorService executor)
Specifies the executor to use while scheduling reporting of metrics.
|
InfluxDbReporter.Builder |
shutdownExecutorOnStop(boolean shutdownExecutorOnStop)
Specifies whether or not, the executor (used for reporting) will be stopped with same time with reporter.
|
InfluxDbReporter.Builder |
withClock(io.dropwizard.metrics5.Clock clock)
Use the given
Clock instance for the time. |
public InfluxDbReporter.Builder shutdownExecutorOnStop(boolean shutdownExecutorOnStop)
scheduleOn(ScheduledExecutorService).shutdownExecutorOnStop - if true, then executor will be stopped in same time with this reporterthispublic InfluxDbReporter.Builder scheduleOn(ScheduledExecutorService executor)
executor - the executor to use while scheduling reporting of metrics.thispublic InfluxDbReporter.Builder withClock(io.dropwizard.metrics5.Clock clock)
Clock instance for the time.clock - a Clock instancethispublic InfluxDbReporter.Builder prefixedWith(io.dropwizard.metrics5.MetricName prefix)
prefix - the prefix for all metric namesthispublic InfluxDbReporter.Builder convertRatesTo(TimeUnit rateUnit)
rateUnit - a unit of timethispublic InfluxDbReporter.Builder convertDurationsTo(TimeUnit durationUnit)
durationUnit - a unit of timethispublic InfluxDbReporter.Builder filter(io.dropwizard.metrics5.MetricFilter filter)
filter - a MetricFilterthispublic InfluxDbReporter.Builder disabledMetricAttributes(Set<io.dropwizard.metrics5.MetricAttribute> disabledMetricAttributes)
disabledMetricAttributes - the disabled metric attributesthispublic InfluxDbReporter build(InfluxDbSender sender)
sender - the InfluxDbSenderCopyright © 2019. All rights reserved.