Class NuxeoDatadogReporter

java.lang.Object
io.dropwizard.metrics5.ScheduledReporter
org.nuxeo.runtime.metrics.reporter.patch.NuxeoDatadogReporter
All Implemented Interfaces:
io.dropwizard.metrics5.Reporter, Closeable, AutoCloseable

public class NuxeoDatadogReporter extends io.dropwizard.metrics5.ScheduledReporter
A copy of Coursera DatadogReporter with minor adaptation to handle metric with tags.
Since:
11.1
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
    static enum 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    forRegistry(io.dropwizard.metrics5.MetricRegistry registry)
     
    protected List<String>
    getTags(Map<String,String> metricTags)
     
    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)
     

    Methods inherited from class io.dropwizard.metrics5.ScheduledReporter

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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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
    • getTags

      protected List<String> getTags(Map<String,String> metricTags)
    • forRegistry

      public static NuxeoDatadogReporter.Builder forRegistry(io.dropwizard.metrics5.MetricRegistry registry)