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