Class NuxeoDynatraceReporter

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

public class NuxeoDynatraceReporter extends io.dropwizard.metrics5.ScheduledReporter
A Dropwizard Metrics ScheduledReporter that sends metrics to Dynatrace OneAgent via UDP.

Uses the DogStatsD-compatible format that Dynatrace supports: metric.name:value|type|#dim1:val1,dim2:val2

Metrics are sent over UDP which is non-blocking - if the OneAgent is not available, metrics are silently dropped without affecting application performance.

Since:
2025.15
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Builder for creating NuxeoDynatraceReporter instances.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    NuxeoDynatraceReporter(io.dropwizard.metrics5.MetricRegistry registry, io.dropwizard.metrics5.MetricFilter filter, String host, int port, String prefix, String hostname, Map<String,String> dimensions, Set<io.dropwizard.metrics5.MetricAttribute> deniedExpansions, boolean emptyTimerAsCount)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    builder(io.dropwizard.metrics5.MetricRegistry registry)
     
    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
  • Constructor Details

    • NuxeoDynatraceReporter

      protected NuxeoDynatraceReporter(io.dropwizard.metrics5.MetricRegistry registry, io.dropwizard.metrics5.MetricFilter filter, String host, int port, String prefix, String hostname, Map<String,String> dimensions, Set<io.dropwizard.metrics5.MetricAttribute> deniedExpansions, boolean emptyTimerAsCount)
  • Method Details

    • builder

      public static NuxeoDynatraceReporter.Builder builder(io.dropwizard.metrics5.MetricRegistry registry)
    • 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
    • stop

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