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 forGraphiteReporter
instances. 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 tcp
orudp
.
-
-
Constructor Summary
Constructors Constructor Description GraphiteReporterFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.codahale.metrics.ScheduledReporter
build(com.codahale.metrics.MetricRegistry registry)
Configures and builds aScheduledReporter
instance for the given registry.protected com.codahale.metrics.graphite.GraphiteReporter.Builder
builder(com.codahale.metrics.MetricRegistry registry)
String
getHost()
int
getPort()
String
getPrefix()
String
getTransport()
void
setHost(String host)
void
setPort(int port)
void
setPrefix(String prefix)
void
setTransport(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:ReporterFactory
Configures and builds aScheduledReporter
instance 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)
-
-