Class NuxeoGraphiteReporter

java.lang.Object
io.dropwizard.metrics5.ScheduledReporter
org.nuxeo.runtime.metrics.reporter.patch.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
     
  • Constructor Summary

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

    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
     

    Methods inherited from class io.dropwizard.metrics5.ScheduledReporter

    close, convertDuration, convertRate, getDisabledMetricAttributes, getDurationUnit, getRateUnit, isShutdownExecutorOnStop, report, start, start

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • reporter

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

    • NuxeoGraphiteReporter

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

    • 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