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(metrics_influxdb.Influxdb influxdb)
Builds a
InfluxdbReporter with the given properties, sending
metrics using the given Influxdb client. |
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 |
filter(com.codahale.metrics.MetricFilter filter)
Only report metrics which match the given filter.
|
InfluxdbReporter.Builder |
prefixedWith(String prefix)
Prefix all metric names with the given string.
|
InfluxdbReporter.Builder |
skipIdleMetrics(boolean skipIdleMetrics)
Only report metrics that have changed.
|
InfluxdbReporter.Builder |
withClock(com.codahale.metrics.Clock clock)
Use the given
Clock instance for the time. |
public InfluxdbReporter.Builder withClock(com.codahale.metrics.Clock clock)
Clock instance for the time.clock - a Clock instancethispublic InfluxdbReporter.Builder prefixedWith(String 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(com.codahale.metrics.MetricFilter filter)
filter - a MetricFilterthispublic InfluxdbReporter.Builder skipIdleMetrics(boolean skipIdleMetrics)
skipIdleMetrics - thispublic InfluxdbReporter build(metrics_influxdb.Influxdb influxdb)
InfluxdbReporter with the given properties, sending
metrics using the given Influxdb client.influxdb - a Influxdb clientInfluxdbReporterCopyright © 2014-2015. All Rights Reserved.