Package 

Class CodahaleSlf4jReporter

  • All Implemented Interfaces:
    com.codahale.metrics.Reporter , java.io.Closeable , java.lang.AutoCloseable

    
    public final class CodahaleSlf4jReporter
    extends ScheduledReporter
                        

    A 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.

    • Method Summary

      Modifier and Type Method Description
      Unit report(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