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
Modifier and TypeFieldDescriptionprotected io.dropwizard.metrics5.graphite.GraphiteReporter
-
Constructor Summary
ConstructorDescriptionNuxeoGraphiteReporter
(io.dropwizard.metrics5.MetricRegistry registry, io.dropwizard.metrics5.MetricFilter filter, io.dropwizard.metrics5.graphite.GraphiteReporter reporter) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 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 classio.dropwizard.metrics5.ScheduledReporter
-
graphiteMetrics
-
convertName
protected io.dropwizard.metrics5.MetricName convertName(io.dropwizard.metrics5.MetricName name) -
stop
public void stop()- Overrides:
stop
in classio.dropwizard.metrics5.ScheduledReporter
-