Class NuxeoGraphiteReporter

  • All Implemented Interfaces:
    io.dropwizard.metrics5.Reporter, Closeable, AutoCloseable

    public class NuxeoGraphiteReporter
    extends io.dropwizard.metrics5.ScheduledReporter
    A Graphite Reporter that handles metric name with tagging. A metric "foo.bar.baz" with tag "bar=qux" is rewritten as "foo.bar.qux.baz".
    Since:
    11.1
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected io.dropwizard.metrics5.graphite.GraphiteReporter reporter  
    • Constructor Summary

      Constructors 
      Constructor Description
      NuxeoGraphiteReporter​(io.dropwizard.metrics5.MetricRegistry registry, io.dropwizard.metrics5.MetricFilter filter, io.dropwizard.metrics5.graphite.GraphiteReporter reporter)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected io.dropwizard.metrics5.MetricName convertName​(io.dropwizard.metrics5.MetricName name)  
      protected <T extends io.dropwizard.metrics5.Metric>
      SortedMap<io.dropwizard.metrics5.MetricName,​T>
      graphiteMetrics​(SortedMap<io.dropwizard.metrics5.MetricName,​T> metrics)  
      void report​(SortedMap<io.dropwizard.metrics5.MetricName,​io.dropwizard.metrics5.Gauge> gauges, SortedMap<io.dropwizard.metrics5.MetricName,​io.dropwizard.metrics5.Counter> counters, SortedMap<io.dropwizard.metrics5.MetricName,​io.dropwizard.metrics5.Histogram> histograms, SortedMap<io.dropwizard.metrics5.MetricName,​io.dropwizard.metrics5.Meter> meters, SortedMap<io.dropwizard.metrics5.MetricName,​io.dropwizard.metrics5.Timer> timers)  
      void stop()  
      • Methods inherited from class io.dropwizard.metrics5.ScheduledReporter

        close, convertDuration, convertRate, getDisabledMetricAttributes, getDurationUnit, getRateUnit, isShutdownExecutorOnStop, report, start, start
    • Field Detail

      • reporter

        protected io.dropwizard.metrics5.graphite.GraphiteReporter reporter
    • Constructor Detail

      • NuxeoGraphiteReporter

        public NuxeoGraphiteReporter​(io.dropwizard.metrics5.MetricRegistry registry,
                                     io.dropwizard.metrics5.MetricFilter filter,
                                     io.dropwizard.metrics5.graphite.GraphiteReporter reporter)
    • Method Detail

      • report

        public void report​(SortedMap<io.dropwizard.metrics5.MetricName,​io.dropwizard.metrics5.Gauge> gauges,
                           SortedMap<io.dropwizard.metrics5.MetricName,​io.dropwizard.metrics5.Counter> counters,
                           SortedMap<io.dropwizard.metrics5.MetricName,​io.dropwizard.metrics5.Histogram> histograms,
                           SortedMap<io.dropwizard.metrics5.MetricName,​io.dropwizard.metrics5.Meter> meters,
                           SortedMap<io.dropwizard.metrics5.MetricName,​io.dropwizard.metrics5.Timer> timers)
        Specified by:
        report in class io.dropwizard.metrics5.ScheduledReporter
      • graphiteMetrics

        protected <T extends io.dropwizard.metrics5.Metric> SortedMap<io.dropwizard.metrics5.MetricName,​T> graphiteMetrics​(SortedMap<io.dropwizard.metrics5.MetricName,​T> metrics)
      • convertName

        protected io.dropwizard.metrics5.MetricName convertName​(io.dropwizard.metrics5.MetricName name)
      • stop

        public void stop()
        Overrides:
        stop in class io.dropwizard.metrics5.ScheduledReporter