public class Graphite extends Object
GraphiteReporter instances| Constructor and Description |
|---|
Graphite() |
| Modifier and Type | Method and Description |
|---|---|
Graphite |
disable()
Disable the Graphite publisher.
|
Graphite |
durationUnit(TimeUnit durationUnit)
Convert durations to the given time unit.
|
Graphite |
enable()
Enable the Graphite publisher.
|
Graphite |
excludeFilter(String excludeFilter)
Do not report metrics which match the given filter.
|
TimeUnit |
getDurationUnit()
The state of duration conversion
|
String |
getExcludeFilter()
The state of the exclusion metric filter
|
String |
getIncludeFilter()
The state of the inclusion metric filter
|
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. |
Graphite |
includeFilter(String includeFilter)
Only report metrics which match the given filter.
|
boolean |
isEnabled()
The state of the Graphite publisher.
|
Graphite |
prefix(String prefix)
Prefix all metric names with the given string.
|
Graphite |
rateUnit(TimeUnit rateUnit)
Convert rates to the given time unit.
|
Graphite |
reporterInterval(Duration reporterInterval)
Configure the interval between broadcasts.
|
Graphite |
sender(com.codahale.metrics.graphite.GraphiteSender sender)
Configure the
GraphiteSender instance. |
public boolean isEnabled()
public Graphite enable()
public Graphite disable()
public Duration getReporterInterval()
public Graphite reporterInterval(Duration reporterInterval)
reporterInterval - the report intervalthispublic com.codahale.metrics.graphite.GraphiteSender getSender()
GraphiteSender instance.public Graphite sender(com.codahale.metrics.graphite.GraphiteSender sender)
GraphiteSender instance.sender - the report senderthispublic String getIncludeFilter()
public Graphite includeFilter(String includeFilter)
includeFilter - a MetricFilterthispublic String getExcludeFilter()
public Graphite excludeFilter(String excludeFilter)
excludeFilter - a MetricFilterthispublic String getPrefix()
public Graphite prefix(String prefix)
prefix - the prefix for all metric namesthispublic TimeUnit getRateUnit()
public Graphite rateUnit(TimeUnit rateUnit)
rateUnit - a unit of timethispublic TimeUnit getDurationUnit()