Package io.dropwizard.metrics.graphite
Class GraphiteReporterFactory
- java.lang.Object
-
- io.dropwizard.metrics.common.BaseReporterFactory
-
- io.dropwizard.metrics.graphite.GraphiteReporterFactory
-
- All Implemented Interfaces:
Discoverable,ReporterFactory
public class GraphiteReporterFactory extends BaseReporterFactory
A factory forGraphiteReporterinstances. Configuration Parameters:Name Default Description host localhost The hostname of the Graphite server to report to. port 2003 The port of the Graphite server to report to. prefix None The prefix for Metric key names to report to Graphite. transport tcp The transport used to report to Graphite. One of tcporudp.
-
-
Constructor Summary
Constructors Constructor Description GraphiteReporterFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.codahale.metrics.ScheduledReporterbuild(com.codahale.metrics.MetricRegistry registry)Configures and builds aScheduledReporterinstance for the given registry.protected com.codahale.metrics.graphite.GraphiteReporter.Builderbuilder(com.codahale.metrics.MetricRegistry registry)StringgetHost()intgetPort()StringgetPrefix()StringgetTransport()voidsetHost(String host)voidsetPort(int port)voidsetPrefix(String prefix)voidsetTransport(String transport)-
Methods inherited from class io.dropwizard.metrics.common.BaseReporterFactory
getDisabledAttributes, getDurationUnit, getExcludes, getExcludesAttributes, getFilter, getFrequency, getIncludes, getIncludesAttributes, getRateUnit, getUseRegexFilters, getUseSubstringMatching, setDurationUnit, setExcludes, setExcludesAttributes, setFrequency, setIncludes, setIncludesAttributes, setRateUnit, setUseRegexFilters, setUseSubstringMatching
-
-
-
-
Method Detail
-
getHost
public String getHost()
-
setHost
public void setHost(String host)
-
getPort
public int getPort()
-
setPort
public void setPort(int port)
-
getPrefix
public String getPrefix()
-
setPrefix
public void setPrefix(String prefix)
-
getTransport
public String getTransport()
-
setTransport
public void setTransport(String transport)
-
build
public com.codahale.metrics.ScheduledReporter build(com.codahale.metrics.MetricRegistry registry)
Description copied from interface:ReporterFactoryConfigures and builds aScheduledReporterinstance for the given registry.- Parameters:
registry- the metrics registry to report metrics from.- Returns:
- a reporter configured for the given metrics registry.
-
builder
protected com.codahale.metrics.graphite.GraphiteReporter.Builder builder(com.codahale.metrics.MetricRegistry registry)
-
-