Class ConsoleReporter

  • Constructor Details

    • ConsoleReporter

      public ConsoleReporter(NBComponent node, NBLabels extraLabels, long millis, boolean oneLastTime, PrintStream output, Set<com.codahale.metrics.MetricAttribute> disabledMetricAttributes)
  • Method Details

    • task

      protected void task()
      Description copied from class: UnstartedPeriodicTaskComponent
      This task should only do what is needed once each period. If it throws any exceptions, then these exceptions will cause the period task to exit. Thus, if you need to allow failures in some cases while keeping the caller (scheduler) active, all errors should be caught and handled internally.
      Specified by:
      task in class UnstartedPeriodicTaskComponent
    • report

      public void report()
    • report

      public void report(List<NBMetricGauge> gauges, List<NBMetricCounter> counters, List<NBMetricHistogram> histograms, List<NBMetricMeter> meters, List<NBMetricTimer> timers)
    • getRateUnit

      protected String getRateUnit()
    • convertRate

      protected double convertRate(double rate)
    • getDurationUnit

      protected String getDurationUnit()
    • convertDuration

      protected double convertDuration(double duration)
    • reportOnce

      public void reportOnce(List<NBMetric> summaryMetrics)
    • reportCountsOnce

      public void reportCountsOnce(List<NBMetric> summaryMetrics)