public class GraphiteReporterFactory extends BaseReporterFactory
GraphiteReporter
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 or
udp . |
Constructor and Description |
---|
GraphiteReporterFactory() |
Modifier and Type | Method and Description |
---|---|
com.codahale.metrics.ScheduledReporter |
build(com.codahale.metrics.MetricRegistry registry)
Configures and builds a
ScheduledReporter 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) |
getDisabledAttributes, getDurationUnit, getExcludes, getExcludesAttributes, getFilter, getFrequency, getIncludes, getIncludesAttributes, getRateUnit, getUseRegexFilters, getUseSubstringMatching, setDurationUnit, setExcludes, setExcludesAttributes, setFrequency, setIncludes, setIncludesAttributes, setRateUnit, setUseRegexFilters, setUseSubstringMatching
public String getHost()
public void setHost(String host)
public int getPort()
public void setPort(int port)
public String getPrefix()
public void setPrefix(String prefix)
public String getTransport()
public void setTransport(String transport)
public com.codahale.metrics.ScheduledReporter build(com.codahale.metrics.MetricRegistry registry)
ReporterFactory
ScheduledReporter
instance for the given registry.registry
- the metrics registry to report metrics from.protected com.codahale.metrics.graphite.GraphiteReporter.Builder builder(com.codahale.metrics.MetricRegistry registry)
Copyright © 2011. All rights reserved.