Class GraphiteConfig

    • Constructor Detail

      • GraphiteConfig

        public GraphiteConfig()
    • Method Detail

      • getSender

        public com.codahale.metrics.graphite.GraphiteSender getSender()
        The GraphiteSender instance.
        Returns:
        the Graphite report sender
      • sender

        public GraphiteConfig sender​(com.codahale.metrics.graphite.GraphiteSender sender)
        Configure the GraphiteSender instance.
        Parameters:
        sender - the report sender
        Returns:
        this
      • getPrefix

        public String getPrefix()
        The state of the metric name prefix.
        Returns:
        the metric prefix value
      • prefix

        public GraphiteConfig prefix​(String prefix)
        Prefix all metric names with the given string.
        Parameters:
        prefix - the prefix for all metric names
        Returns:
        this
      • getRateUnit

        public TimeUnit getRateUnit()
        The state of rate conversion.
        Returns:
        the rate conversion unit
      • rateUnit

        public GraphiteConfig rateUnit​(TimeUnit rateUnit)
        Convert rates to the given time unit.
        Parameters:
        rateUnit - a unit of time
        Returns:
        this
      • getDurationUnit

        public TimeUnit getDurationUnit()
        The state of duration conversion.
        Returns:
        the duration conversion unit
      • durationUnit

        public GraphiteConfig durationUnit​(TimeUnit durationUnit)
        Convert durations to the given time unit.
        Parameters:
        durationUnit - a unit of time
        Returns:
        this