Package org.apache.accumulo.test.metrics
Class MetricsIT
- java.lang.Object
-
- org.apache.accumulo.harness.WithTestNames
-
- org.apache.accumulo.harness.AccumuloITBase
-
- org.apache.accumulo.test.functional.ConfigurableMacBase
-
- org.apache.accumulo.test.metrics.MetricsIT
-
- All Implemented Interfaces:
MetricsProducer
public class MetricsIT extends ConfigurableMacBase implements MetricsProducer
-
-
Field Summary
-
Fields inherited from class org.apache.accumulo.test.functional.ConfigurableMacBase
cluster, log, ROOT_PASSWORD
-
Fields inherited from class org.apache.accumulo.harness.AccumuloITBase
MINI_CLUSTER_ONLY, random, STANDALONE_CAPABLE_CLUSTER, SUNNY_DAY, ZOOKEEPER_TESTING_SERVER
-
Fields inherited from interface org.apache.accumulo.core.metrics.MetricsProducer
LOG, METRICS_COMPACTOR_MAJC_STUCK, METRICS_COMPACTOR_PREFIX, METRICS_FATE_ERRORS, METRICS_FATE_OPS_ACTIVITY, METRICS_FATE_PREFIX, METRICS_FATE_TOTAL_IN_PROGRESS, METRICS_FATE_TX, METRICS_FATE_TYPE_IN_PROGRESS, METRICS_GC_CANDIDATES, METRICS_GC_DELETED, METRICS_GC_ERRORS, METRICS_GC_FINISHED, METRICS_GC_IN_USE, METRICS_GC_POST_OP_DURATION, METRICS_GC_PREFIX, METRICS_GC_RUN_CYCLE, METRICS_GC_STARTED, METRICS_GC_WAL_CANDIDATES, METRICS_GC_WAL_DELETED, METRICS_GC_WAL_ERRORS, METRICS_GC_WAL_FINISHED, METRICS_GC_WAL_IN_USE, METRICS_GC_WAL_STARTED, METRICS_MAJC_PREFIX, METRICS_MAJC_QUEUED, METRICS_MAJC_RUNNING, METRICS_MINC_PREFIX, METRICS_MINC_QUEUED, METRICS_MINC_RUNNING, METRICS_PROPSTORE_EVICTION_COUNT, METRICS_PROPSTORE_LOAD_TIMER, METRICS_PROPSTORE_PREFIX, METRICS_PROPSTORE_REFRESH_COUNT, METRICS_PROPSTORE_REFRESH_LOAD_COUNT, METRICS_PROPSTORE_ZK_ERROR_COUNT, METRICS_REPLICATION_PEERS, METRICS_REPLICATION_PENDING_FILES, METRICS_REPLICATION_PREFIX, METRICS_REPLICATION_QUEUE, METRICS_REPLICATION_THREADS, METRICS_SCAN, METRICS_SCAN_BUSY_TIMEOUT, METRICS_SCAN_CLOSE, METRICS_SCAN_CONTINUE, METRICS_SCAN_OPEN_FILES, METRICS_SCAN_RESULTS, METRICS_SCAN_START, METRICS_SCAN_YIELDS, METRICS_THRIFT_EXECUTE, METRICS_THRIFT_IDLE, METRICS_THRIFT_PREFIX, METRICS_TSERVER_ENTRIES, METRICS_TSERVER_HOLD, METRICS_TSERVER_INGEST_BYTES, METRICS_TSERVER_INGEST_MUTATIONS, METRICS_TSERVER_MAJC_QUEUED, METRICS_TSERVER_MAJC_RUNNING, METRICS_TSERVER_MAJC_STUCK, METRICS_TSERVER_MEM_ENTRIES, METRICS_TSERVER_MINC_QUEUED, METRICS_TSERVER_MINC_RUNNING, METRICS_TSERVER_MINC_TOTAL, METRICS_TSERVER_PREFIX, METRICS_TSERVER_QUERIES, METRICS_TSERVER_SCAN_RESULTS, METRICS_TSERVER_SCAN_RESULTS_BYTES, METRICS_TSERVER_SCANNED_ENTRIES, METRICS_TSERVER_TABLETS_FILES, METRICS_TSERVER_TABLETS_LONG_ASSIGNMENTS, METRICS_TSERVER_TABLETS_ONLINE, METRICS_TSERVER_TABLETS_OPENING, METRICS_TSERVER_TABLETS_UNOPENED, METRICS_UPDATE_COMMIT, METRICS_UPDATE_COMMIT_PREP, METRICS_UPDATE_ERRORS, METRICS_UPDATE_MUTATION_ARRAY_SIZE, METRICS_UPDATE_PREFIX, METRICS_UPDATE_WALOG_WRITE
-
-
Constructor Summary
Constructors Constructor Description MetricsIT()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
after()
static void
before()
protected void
configure(MiniAccumuloConfigImpl cfg, org.apache.hadoop.conf.Configuration hadoopCoreSite)
void
confirmMetricsPublished()
protected Duration
defaultTimeout()
Time to wait per-method before declaring a timeout, in seconds.void
registerMetrics(io.micrometer.core.instrument.MeterRegistry registry)
-
Methods inherited from class org.apache.accumulo.test.functional.ConfigurableMacBase
beforeClusterStart, configureForEnvironment, configureForSsl, exec, getClientProperties, getCluster, getServerContext, setUp, tearDown
-
Methods inherited from class org.apache.accumulo.harness.AccumuloITBase
createTestDir, getOnlyElement, getOnlyElement, getSslDir, getUniqueNames, initJar
-
Methods inherited from class org.apache.accumulo.harness.WithTestNames
setTestName, testName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.accumulo.core.metrics.MetricsProducer
getMetricFields
-
-
-
-
Method Detail
-
defaultTimeout
protected Duration defaultTimeout()
Description copied from class:AccumuloITBase
Time to wait per-method before declaring a timeout, in seconds.- Overrides:
defaultTimeout
in classAccumuloITBase
-
configure
protected void configure(MiniAccumuloConfigImpl cfg, org.apache.hadoop.conf.Configuration hadoopCoreSite)
- Overrides:
configure
in classConfigurableMacBase
-
confirmMetricsPublished
@Test public void confirmMetricsPublished() throws Exception
- Throws:
Exception
-
registerMetrics
public void registerMetrics(io.micrometer.core.instrument.MeterRegistry registry)
- Specified by:
registerMetrics
in interfaceMetricsProducer
-
-