-
- All Implemented Interfaces:
-
com.codahale.metrics.Reporter,java.io.Closeable,java.lang.AutoCloseable
public final class CodahaleSlf4jReporter extends ScheduledReporterA reporter class for logging metrics values to a SLF4J Logger periodically, similar to ConsoleReporter or CsvReporter, but using the SLF4J framework instead. It also supports specifying a Marker instance that can be used by custom appenders and filters for the bound logging toolkit to further process metrics reports.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumCodahaleSlf4jReporter.LoggingLevelpublic final classCodahaleSlf4jReporter.BuilderA builder for Slf4jReporter instances. Defaults to logging to
metrics, not using a marker, converting rates to events/second, converting durations to milliseconds, and not filtering metrics.public classCodahaleSlf4jReporter.Companion
-
Method Summary
Modifier and Type Method Description Unitreport(SortedMap<String, Gauge<?>> gauges, SortedMap<String, Counter> counters, SortedMap<String, Histogram> histograms, SortedMap<String, Meter> meters, SortedMap<String, Timer> timers)-
Methods inherited from class ai.platon.pulsar.common.metrics.CodahaleSlf4jReporter
close, convertDuration, convertRate, getDisabledMetricAttributes, getDurationUnit, isShutdownExecutorOnStop, report, start, start, start, stop -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-