Class GraphiteReporterFactory

  • All Implemented Interfaces:
    Discoverable, ReporterFactory

    public class GraphiteReporterFactory
    extends BaseReporterFactory
    A factory for 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 Detail

      • GraphiteReporterFactory

        public GraphiteReporterFactory()
    • 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 a ScheduledReporter 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)