public class GraphiteConfig
extends java.lang.Object
GraphiteReporter instances.| Constructor and Description |
|---|
GraphiteConfig() |
| Modifier and Type | Method and Description |
|---|---|
GraphiteConfig |
disable()
Disable the Graphite publisher.
|
GraphiteConfig |
durationUnit(java.util.concurrent.TimeUnit durationUnit)
Convert durations to the given time unit.
|
GraphiteConfig |
enable()
Enable the Graphite publisher.
|
T |
excludeFilter(java.lang.String excludeFilter)
Set the exclude metric filter expression of the reporter.
|
java.util.concurrent.TimeUnit |
getDurationUnit()
The state of duration conversion.
|
java.lang.String |
getExcludeFilter()
The exclude metric filter expression of the reporter.
|
java.lang.String |
getIncludeFilter()
The include metric filter expression of the reporter.
|
java.lang.String |
getPrefix()
The state of the metric name prefix.
|
java.util.concurrent.TimeUnit |
getRateUnit()
The state of rate conversion.
|
java.time.Duration |
getReporterInterval()
The interval between metrics reports.
|
com.codahale.metrics.graphite.GraphiteSender |
getSender()
The
GraphiteSender instance. |
T |
includeFilter(java.lang.String includeFilter)
Set the include metric filter of the reporter.
|
boolean |
isEnabled()
The state of the Graphite publisher.
|
GraphiteConfig |
prefix(java.lang.String prefix)
Prefix all metric names with the given string.
|
GraphiteConfig |
rateUnit(java.util.concurrent.TimeUnit rateUnit)
Convert rates to the given time unit.
|
T |
reporterInterval(java.time.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 java.lang.String getPrefix()
public GraphiteConfig prefix(java.lang.String prefix)
prefix - the prefix for all metric namesthispublic java.util.concurrent.TimeUnit getRateUnit()
public GraphiteConfig rateUnit(java.util.concurrent.TimeUnit rateUnit)
rateUnit - a unit of timethispublic java.util.concurrent.TimeUnit getDurationUnit()
public GraphiteConfig durationUnit(java.util.concurrent.TimeUnit durationUnit)
durationUnit - a unit of timethispublic java.time.Duration getReporterInterval()
public T reporterInterval(java.time.Duration reporterInterval)
reporterInterval - the report intervalthispublic java.lang.String getIncludeFilter()
public T includeFilter(java.lang.String includeFilter)
includeFilter - the regular expression to match on.thispublic java.lang.String getExcludeFilter()
public T excludeFilter(java.lang.String excludeFilter)
excludeFilter - the regular expression to match on.this