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 ClassesModifier and TypeClassDescriptionstatic classBuilder for creating NuxeoDynatraceReporter instances. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedNuxeoDynatraceReporter(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 TypeMethodDescriptionbuilder(io.dropwizard.metrics5.MetricRegistry registry) voidreport(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) voidstop()Methods inherited from class io.dropwizard.metrics5.ScheduledReporter
close, convertDuration, convertRate, getDisabledMetricAttributes, getDurationUnit, getRateUnit, isShutdownExecutorOnStop, report, start, start
-
Constructor Details
-
NuxeoDynatraceReporter
-
-
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:
reportin classio.dropwizard.metrics5.ScheduledReporter
-
stop
public void stop()- Overrides:
stopin classio.dropwizard.metrics5.ScheduledReporter
-