Package org.apache.drill.exec.metrics
Class DrillMetrics
java.lang.Object
org.apache.drill.exec.metrics.DrillMetrics
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanstatic final booleanstatic final int -
Method Summary
Modifier and TypeMethodDescriptionstatic com.codahale.metrics.MetricRegistrystatic <T extends com.codahale.metrics.Metric>
voidNote: For counters, histograms, meters and timers, use get or create methods onthe registry(e.g.static void
-
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
Note: For counters, histograms, meters and timers, use get or create methods onthe registry(e.g.MetricRegistry.counter(java.lang.String)). Forgaugesor 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 namemetric- metric instance
-
getRegistry
public static com.codahale.metrics.MetricRegistry getRegistry() -
resetMetrics
public static void resetMetrics()
-