public class GraphiteConfig extends ScheduledReporterConfigSupport<GraphiteConfig>
GraphiteReporter instances.| Constructor and Description |
|---|
GraphiteConfig() |
| Modifier and Type | Method and Description |
|---|---|
GraphiteConfig |
disable()
Disable the Graphite publisher.
|
GraphiteConfig |
durationUnit(TimeUnit durationUnit)
Convert durations to the given time unit.
|
GraphiteConfig |
enable()
Enable the Graphite publisher.
|
TimeUnit |
getDurationUnit()
The state of duration conversion.
|
String |
getPrefix()
The state of the metric name prefix.
|
TimeUnit |
getRateUnit()
The state of rate conversion.
|
com.codahale.metrics.graphite.GraphiteSender |
getSender()
The
GraphiteSender instance. |
boolean |
isEnabled()
The state of the Graphite publisher.
|
GraphiteConfig |
prefix(String prefix)
Prefix all metric names with the given string.
|
GraphiteConfig |
rateUnit(TimeUnit rateUnit)
Convert rates to the given time unit.
|
GraphiteConfig |
sender(com.codahale.metrics.graphite.GraphiteSender sender)
Configure the
GraphiteSender instance. |
getReporterInterval, reporterIntervalexcludeFilter, getExcludeFilter, getIncludeFilter, includeFilterpublic boolean isEnabled()
public GraphiteConfig enable()
public GraphiteConfig disable()
public com.codahale.metrics.graphite.GraphiteSender getSender()
GraphiteSender instance.public GraphiteConfig sender(com.codahale.metrics.graphite.GraphiteSender sender)
GraphiteSender instance.sender - the report senderthispublic String getPrefix()
public GraphiteConfig prefix(String prefix)
prefix - the prefix for all metric namesthispublic TimeUnit getRateUnit()
public GraphiteConfig rateUnit(TimeUnit rateUnit)
rateUnit - a unit of timethispublic TimeUnit getDurationUnit()
public GraphiteConfig durationUnit(TimeUnit durationUnit)
durationUnit - a unit of timethis