Package org.apache.accumulo.core.metrics
Interface MetricsProducer
-
public interface MetricsProducer
Prior to 2.1.0 Accumulo used the Hadoop Metrics2 framework. In 2.1.0 Accumulo migrated away from the Metrics2 framework to Micrometer. Micrometer suggests using a particular naming convention for the metrics. The table below contains a mapping of the old to new metric names.Summary of Metric Changes Old Name Hadoop Metrics2 Type New Name Micrometer Type Notes N/A N/A METRICS_COMPACTOR_MAJC_STUCK
LongTaskTimer currentFateOps Gauge METRICS_FATE_TOTAL_IN_PROGRESS
Gauge FateTxOpType_{name} Gauge METRICS_FATE_TYPE_IN_PROGRESS
Gauge Previously there was a metric per operation type with the count of in-progress transactions of that type. Now there is one metric and the type is in the tag op.type totalFateOps Gauge METRICS_FATE_OPS_ACTIVITY
Gauge totalZkConnErrors Gauge METRICS_FATE_ERRORS
Gauge FateTxState_NEW Gauge METRICS_FATE_TX
Gauge The state is now in a tag: state=new FateTxState_IN_PROGRESS Gauge METRICS_FATE_TX
Gauge The state is now in a tag: state=in.progress FateTxState_FAILED_IN_PROGRESS Gauge METRICS_FATE_TX
Gauge The state is now in a tag: state=failed.in.progress FateTxState_FAILED Gauge METRICS_FATE_TX
Gauge The state is now in a tag: state=failed FateTxState_SUCCESSFUL Gauge METRICS_FATE_TX
Gauge The state is now in a tag: state=successful FateTxState_UNKNOWN Gauge METRICS_FATE_TX
Gauge The state is now in a tag: state=unknown AccGcStarted Gauge METRICS_GC_STARTED
Gauge AccGcFinished Gauge METRICS_GC_FINISHED
Gauge AccGcCandidates Gauge METRICS_GC_CANDIDATES
Gauge AccGcInUse Gauge METRICS_GC_IN_USE
Gauge AccGcDeleted Gauge METRICS_GC_DELETED
Gauge AccGcErrors Gauge METRICS_GC_ERRORS
Gauge AccGcWalStarted Gauge METRICS_GC_WAL_STARTED
Gauge AccGcWalFinished Gauge METRICS_GC_WAL_FINISHED
Gauge AccGcWalCandidates Gauge METRICS_GC_WAL_CANDIDATES
Gauge AccGcWalInUse Gauge METRICS_GC_WAL_IN_USE
Gauge AccGcWalDeleted Gauge METRICS_GC_WAL_DELETED
Gauge AccGcWalErrors Gauge METRICS_GC_WAL_ERRORS
Gauge AccGcPosOpDuration Gauge METRICS_GC_POST_OP_DURATION
Gauge AccGcRunCycleCount Gauge METRICS_GC_RUN_CYCLE
Gauge entries Gauge METRICS_TSERVER_ENTRIES
Gauge entriesInMem Gauge METRICS_TSERVER_MEM_ENTRIES
Gauge activeMajCs Gauge METRICS_TSERVER_MAJC_RUNNING
Gauge N/A N/A METRICS_TSERVER_MAJC_STUCK
LongTaskTimer queuedMajCs Gauge METRICS_TSERVER_MAJC_QUEUED
Gauge activeMinCs Gauge METRICS_TSERVER_MINC_RUNNING
Gauge queuedMinCs Gauge METRICS_TSERVER_MINC_QUEUED
Gauge totalMinCs Gauge METRICS_TSERVER_MINC_TOTAL
Gauge onlineTablets Gauge METRICS_TSERVER_TABLETS_ONLINE
Gauge N/A N/A METRICS_TSERVER_TABLETS_LONG_ASSIGNMENTS
Gauge openingTablets Gauge METRICS_TSERVER_TABLETS_OPENING
Gauge unopenedTablets Gauge METRICS_TSERVER_TABLETS_UNOPENED
Gauge filesPerTablet Gauge METRICS_TSERVER_TABLETS_FILES
Gauge queries Gauge METRICS_TSERVER_QUERIES
Gauge scannedRate Gauge METRICS_TSERVER_SCANNED_ENTRIES
Gauge Prior to 2.1.0 this metric was reported as a rate, it is now the count and the rate can be derived queryRate Gauge METRICS_TSERVER_SCAN_RESULTS
Gauge Prior to 2.1.0 this metric was reported as a rate, it is now the count and the rate can be derived queryByteRate Gauge METRICS_TSERVER_SCAN_RESULTS_BYTES
Gauge Prior to 2.1.0 this metric was reported as a rate, it is now the count and the rate can be derived ingestRate Gauge METRICS_TSERVER_INGEST_MUTATIONS
Gauge Prior to 2.1.0 this metric was reported as a rate, it is now the count and the rate can be derived ingestByteRate Gauge METRICS_TSERVER_INGEST_BYTES
Gauge Prior to 2.1.0 this metric was reported as a rate, it is now the count and the rate can be derived holdTime Gauge METRICS_TSERVER_HOLD
Gauge scan Stat METRICS_SCAN
Gauge N/A N/A METRICS_SCAN_OPEN_FILES
Gauge result Stat METRICS_SCAN_RESULTS
Gauge yield Stat METRICS_SCAN_YIELDS
Gauge N/A N/A METRICS_SCAN_START
Counter N/A N/A METRICS_SCAN_CONTINUE
Counter N/A N/A METRICS_SCAN_CLOSE
Counter N/A N/A METRICS_SCAN_BUSY_TIMEOUT
Counter {i|e}_{compactionServiceName}_{executor_name}_queued Gauge METRICS_MAJC_QUEUED
Gauge The compaction service information is in a tag: id={i|e}_{compactionServiceName}_{executor_name} {i|e}_{compactionServiceName}_{executor_name}_running Gauge METRICS_MAJC_RUNNING
Gauge The compaction service information is in a tag: id={i|e}_{compactionServiceName}_{executor_name} Queue Stat METRICS_MINC_QUEUED
Timer Minc Stat METRICS_MINC_RUNNING
Timer ReplicationQueue Stat METRICS_REPLICATION_QUEUE
Timer ReplicationQueue10m Quantiles N/A N/A filesPendingReplication Stat METRICS_REPLICATION_PENDING_FILES
Gauge maxReplicationThreads Stat METRICS_REPLICATION_THREADS
Gauge numPeers Stat METRICS_REPLICATION_PEERS
Gauge permissionErrors Counter METRICS_UPDATE_ERRORS
Gauge Type is stored in tag: type=permission unknownTabletErrors Counter METRICS_UPDATE_ERRORS
Gauge Type is stored in tag: type=unknown.tablet constraintViolations Counter METRICS_UPDATE_ERRORS
Gauge Type is stored in tag: type=constraint.violation commitPrep Stat METRICS_UPDATE_COMMIT_PREP
Timer commitTime Stat METRICS_UPDATE_COMMIT
Timer waLogWriteTime Stat METRICS_UPDATE_WALOG_WRITE
Timer mutationArraysSize Stat METRICS_UPDATE_MUTATION_ARRAY_SIZE
Distribution Summary idle Stat METRICS_THRIFT_IDLE
Distribution Summary execute Stat METRICS_THRIFT_EXECUTE
Distribution Summary N/A N/A METRICS_PROPSTORE_LOAD_TIMER
Timer N/A N/A METRICS_PROPSTORE_REFRESH_COUNT
Counter N/A N/A METRICS_PROPSTORE_REFRESH_LOAD_COUNT
Counter N/A N/A METRICS_PROPSTORE_EVICTION_COUNT
Counter N/A N/A METRICS_PROPSTORE_ZK_ERROR_COUNT
Counter - Since:
- 2.1.0
-
-
Field Summary
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Map<String,String>
getMetricFields()
Returns a new mutable mapping of metric field value to metric field name.void
registerMetrics(io.micrometer.core.instrument.MeterRegistry registry)
Build Micrometer Meter objects and register them with the registry
-
-
-
Field Detail
-
LOG
static final org.slf4j.Logger LOG
-
METRICS_COMPACTOR_PREFIX
static final String METRICS_COMPACTOR_PREFIX
- See Also:
- Constant Field Values
-
METRICS_COMPACTOR_MAJC_STUCK
static final String METRICS_COMPACTOR_MAJC_STUCK
- See Also:
- Constant Field Values
-
METRICS_FATE_PREFIX
static final String METRICS_FATE_PREFIX
- See Also:
- Constant Field Values
-
METRICS_FATE_TYPE_IN_PROGRESS
static final String METRICS_FATE_TYPE_IN_PROGRESS
- See Also:
- Constant Field Values
-
METRICS_FATE_TOTAL_IN_PROGRESS
static final String METRICS_FATE_TOTAL_IN_PROGRESS
- See Also:
- Constant Field Values
-
METRICS_FATE_OPS_ACTIVITY
static final String METRICS_FATE_OPS_ACTIVITY
- See Also:
- Constant Field Values
-
METRICS_FATE_ERRORS
static final String METRICS_FATE_ERRORS
- See Also:
- Constant Field Values
-
METRICS_FATE_TX
static final String METRICS_FATE_TX
- See Also:
- Constant Field Values
-
METRICS_GC_PREFIX
static final String METRICS_GC_PREFIX
- See Also:
- Constant Field Values
-
METRICS_GC_STARTED
static final String METRICS_GC_STARTED
- See Also:
- Constant Field Values
-
METRICS_GC_FINISHED
static final String METRICS_GC_FINISHED
- See Also:
- Constant Field Values
-
METRICS_GC_CANDIDATES
static final String METRICS_GC_CANDIDATES
- See Also:
- Constant Field Values
-
METRICS_GC_IN_USE
static final String METRICS_GC_IN_USE
- See Also:
- Constant Field Values
-
METRICS_GC_DELETED
static final String METRICS_GC_DELETED
- See Also:
- Constant Field Values
-
METRICS_GC_ERRORS
static final String METRICS_GC_ERRORS
- See Also:
- Constant Field Values
-
METRICS_GC_WAL_STARTED
static final String METRICS_GC_WAL_STARTED
- See Also:
- Constant Field Values
-
METRICS_GC_WAL_FINISHED
static final String METRICS_GC_WAL_FINISHED
- See Also:
- Constant Field Values
-
METRICS_GC_WAL_CANDIDATES
static final String METRICS_GC_WAL_CANDIDATES
- See Also:
- Constant Field Values
-
METRICS_GC_WAL_IN_USE
static final String METRICS_GC_WAL_IN_USE
- See Also:
- Constant Field Values
-
METRICS_GC_WAL_DELETED
static final String METRICS_GC_WAL_DELETED
- See Also:
- Constant Field Values
-
METRICS_GC_WAL_ERRORS
static final String METRICS_GC_WAL_ERRORS
- See Also:
- Constant Field Values
-
METRICS_GC_POST_OP_DURATION
static final String METRICS_GC_POST_OP_DURATION
- See Also:
- Constant Field Values
-
METRICS_GC_RUN_CYCLE
static final String METRICS_GC_RUN_CYCLE
- See Also:
- Constant Field Values
-
METRICS_MAJC_PREFIX
static final String METRICS_MAJC_PREFIX
- See Also:
- Constant Field Values
-
METRICS_MAJC_QUEUED
static final String METRICS_MAJC_QUEUED
- See Also:
- Constant Field Values
-
METRICS_MAJC_RUNNING
static final String METRICS_MAJC_RUNNING
- See Also:
- Constant Field Values
-
METRICS_MINC_PREFIX
static final String METRICS_MINC_PREFIX
- See Also:
- Constant Field Values
-
METRICS_MINC_QUEUED
static final String METRICS_MINC_QUEUED
- See Also:
- Constant Field Values
-
METRICS_MINC_RUNNING
static final String METRICS_MINC_RUNNING
- See Also:
- Constant Field Values
-
METRICS_REPLICATION_PREFIX
static final String METRICS_REPLICATION_PREFIX
- See Also:
- Constant Field Values
-
METRICS_REPLICATION_QUEUE
static final String METRICS_REPLICATION_QUEUE
- See Also:
- Constant Field Values
-
METRICS_REPLICATION_PENDING_FILES
static final String METRICS_REPLICATION_PENDING_FILES
- See Also:
- Constant Field Values
-
METRICS_REPLICATION_PEERS
static final String METRICS_REPLICATION_PEERS
- See Also:
- Constant Field Values
-
METRICS_REPLICATION_THREADS
static final String METRICS_REPLICATION_THREADS
- See Also:
- Constant Field Values
-
METRICS_SCAN
static final String METRICS_SCAN
- See Also:
- Constant Field Values
-
METRICS_SCAN_OPEN_FILES
static final String METRICS_SCAN_OPEN_FILES
- See Also:
- Constant Field Values
-
METRICS_SCAN_RESULTS
static final String METRICS_SCAN_RESULTS
- See Also:
- Constant Field Values
-
METRICS_SCAN_YIELDS
static final String METRICS_SCAN_YIELDS
- See Also:
- Constant Field Values
-
METRICS_SCAN_START
static final String METRICS_SCAN_START
- See Also:
- Constant Field Values
-
METRICS_SCAN_CONTINUE
static final String METRICS_SCAN_CONTINUE
- See Also:
- Constant Field Values
-
METRICS_SCAN_CLOSE
static final String METRICS_SCAN_CLOSE
- See Also:
- Constant Field Values
-
METRICS_SCAN_BUSY_TIMEOUT
static final String METRICS_SCAN_BUSY_TIMEOUT
- See Also:
- Constant Field Values
-
METRICS_TSERVER_PREFIX
static final String METRICS_TSERVER_PREFIX
- See Also:
- Constant Field Values
-
METRICS_TSERVER_ENTRIES
static final String METRICS_TSERVER_ENTRIES
- See Also:
- Constant Field Values
-
METRICS_TSERVER_MEM_ENTRIES
static final String METRICS_TSERVER_MEM_ENTRIES
- See Also:
- Constant Field Values
-
METRICS_TSERVER_MAJC_QUEUED
static final String METRICS_TSERVER_MAJC_QUEUED
- See Also:
- Constant Field Values
-
METRICS_TSERVER_MAJC_RUNNING
static final String METRICS_TSERVER_MAJC_RUNNING
- See Also:
- Constant Field Values
-
METRICS_TSERVER_MAJC_STUCK
static final String METRICS_TSERVER_MAJC_STUCK
- See Also:
- Constant Field Values
-
METRICS_TSERVER_MINC_QUEUED
static final String METRICS_TSERVER_MINC_QUEUED
- See Also:
- Constant Field Values
-
METRICS_TSERVER_MINC_RUNNING
static final String METRICS_TSERVER_MINC_RUNNING
- See Also:
- Constant Field Values
-
METRICS_TSERVER_MINC_TOTAL
static final String METRICS_TSERVER_MINC_TOTAL
- See Also:
- Constant Field Values
-
METRICS_TSERVER_TABLETS_LONG_ASSIGNMENTS
static final String METRICS_TSERVER_TABLETS_LONG_ASSIGNMENTS
- See Also:
- Constant Field Values
-
METRICS_TSERVER_TABLETS_ONLINE
static final String METRICS_TSERVER_TABLETS_ONLINE
- See Also:
- Constant Field Values
-
METRICS_TSERVER_TABLETS_OPENING
static final String METRICS_TSERVER_TABLETS_OPENING
- See Also:
- Constant Field Values
-
METRICS_TSERVER_TABLETS_UNOPENED
static final String METRICS_TSERVER_TABLETS_UNOPENED
- See Also:
- Constant Field Values
-
METRICS_TSERVER_QUERIES
static final String METRICS_TSERVER_QUERIES
- See Also:
- Constant Field Values
-
METRICS_TSERVER_TABLETS_FILES
static final String METRICS_TSERVER_TABLETS_FILES
- See Also:
- Constant Field Values
-
METRICS_TSERVER_HOLD
static final String METRICS_TSERVER_HOLD
- See Also:
- Constant Field Values
-
METRICS_TSERVER_INGEST_MUTATIONS
static final String METRICS_TSERVER_INGEST_MUTATIONS
- See Also:
- Constant Field Values
-
METRICS_TSERVER_INGEST_BYTES
static final String METRICS_TSERVER_INGEST_BYTES
- See Also:
- Constant Field Values
-
METRICS_TSERVER_SCAN_RESULTS
static final String METRICS_TSERVER_SCAN_RESULTS
- See Also:
- Constant Field Values
-
METRICS_TSERVER_SCAN_RESULTS_BYTES
static final String METRICS_TSERVER_SCAN_RESULTS_BYTES
- See Also:
- Constant Field Values
-
METRICS_TSERVER_SCANNED_ENTRIES
static final String METRICS_TSERVER_SCANNED_ENTRIES
- See Also:
- Constant Field Values
-
METRICS_THRIFT_PREFIX
static final String METRICS_THRIFT_PREFIX
- See Also:
- Constant Field Values
-
METRICS_THRIFT_EXECUTE
static final String METRICS_THRIFT_EXECUTE
- See Also:
- Constant Field Values
-
METRICS_THRIFT_IDLE
static final String METRICS_THRIFT_IDLE
- See Also:
- Constant Field Values
-
METRICS_UPDATE_PREFIX
static final String METRICS_UPDATE_PREFIX
- See Also:
- Constant Field Values
-
METRICS_UPDATE_ERRORS
static final String METRICS_UPDATE_ERRORS
- See Also:
- Constant Field Values
-
METRICS_UPDATE_COMMIT
static final String METRICS_UPDATE_COMMIT
- See Also:
- Constant Field Values
-
METRICS_UPDATE_COMMIT_PREP
static final String METRICS_UPDATE_COMMIT_PREP
- See Also:
- Constant Field Values
-
METRICS_UPDATE_WALOG_WRITE
static final String METRICS_UPDATE_WALOG_WRITE
- See Also:
- Constant Field Values
-
METRICS_UPDATE_MUTATION_ARRAY_SIZE
static final String METRICS_UPDATE_MUTATION_ARRAY_SIZE
- See Also:
- Constant Field Values
-
METRICS_PROPSTORE_PREFIX
static final String METRICS_PROPSTORE_PREFIX
- See Also:
- Constant Field Values
-
METRICS_PROPSTORE_LOAD_TIMER
static final String METRICS_PROPSTORE_LOAD_TIMER
- See Also:
- Constant Field Values
-
METRICS_PROPSTORE_REFRESH_COUNT
static final String METRICS_PROPSTORE_REFRESH_COUNT
- See Also:
- Constant Field Values
-
METRICS_PROPSTORE_REFRESH_LOAD_COUNT
static final String METRICS_PROPSTORE_REFRESH_LOAD_COUNT
- See Also:
- Constant Field Values
-
METRICS_PROPSTORE_EVICTION_COUNT
static final String METRICS_PROPSTORE_EVICTION_COUNT
- See Also:
- Constant Field Values
-
METRICS_PROPSTORE_ZK_ERROR_COUNT
static final String METRICS_PROPSTORE_ZK_ERROR_COUNT
- See Also:
- Constant Field Values
-
-