Class DrillMetrics

java.lang.Object
org.apache.drill.exec.metrics.DrillMetrics

public final class DrillMetrics extends Object
  • Field Details

    • METRICS_JMX_OUTPUT_ENABLED

      public static final boolean METRICS_JMX_OUTPUT_ENABLED
    • METRICS_LOG_OUTPUT_ENABLED

      public static final boolean METRICS_LOG_OUTPUT_ENABLED
    • METRICS_LOG_OUTPUT_INTERVAL

      public static final int METRICS_LOG_OUTPUT_INTERVAL
  • Method Details

    • register

      public static <T extends com.codahale.metrics.Metric> void register(String name, T metric)
      Note: For counters, histograms, meters and timers, use get or create methods on the registry (e.g. MetricRegistry.counter(java.lang.String)). For gauges or custom metric implementations use this method. The registry does not allow registering multiple metrics with the same name, which is a problem when multiple drillbits are started in the same JVM (e.g. unit tests).
      Type Parameters:
      T - metric type
      Parameters:
      name - metric name
      metric - metric instance
    • getRegistry

      public static com.codahale.metrics.MetricRegistry getRegistry()
    • resetMetrics

      public static void resetMetrics()