public class GraphiteConfig extends Object
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.
|
T |
excludeFilter(String excludeFilter)
Set the exclude metric filter expression of the reporter.
|
TimeUnit |
getDurationUnit()
The state of duration conversion.
|
String |
getExcludeFilter()
The exclude metric filter expression of the reporter.
|
String |
getIncludeFilter()
The include metric filter expression of the reporter.
|
String |
getPrefix()
The state of the metric name prefix.
|
TimeUnit |
getRateUnit()
The state of rate conversion.
|
Duration |
getReporterInterval()
The interval between metrics reports.
|
com.codahale.metrics.graphite.GraphiteSender |
getSender()
The
GraphiteSender instance. |
T |
includeFilter(String includeFilter)
Set the include metric filter of the reporter.
|
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.
|
T |
reporterInterval(Duration reporterInterval)
Configure the interval between metrics reports.
|
GraphiteConfig |
sender(com.codahale.metrics.graphite.GraphiteSender sender)
Configure the
GraphiteSender instance. |
public 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 timethispublic Duration getReporterInterval()
public T reporterInterval(Duration reporterInterval)
reporterInterval - the report intervalthispublic String getIncludeFilter()
public T includeFilter(String includeFilter)
includeFilter - the regular expression to match on.thispublic String getExcludeFilter()
public T excludeFilter(String excludeFilter)
excludeFilter - the regular expression to match on.this