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.
Old Name | Hadoop Metrics2 Type | New Name | Micrometer Type | Notes |
---|---|---|---|---|
N/A | N/A | "accumulo.server.idle" | Gauge | Indicates if the server is idle or not. The value will be 1 when idle and 0 when not idle. |
N/A | N/A | "accumulo.compactor.majc.stuck" | LongTaskTimer | |
N/A | N/A | "accumulo.compactor.entries.read" | FunctionCounter | Number of entries read by all threads performing compactions |
N/A | N/A | "accumulo.compactor.entries.written" | FunctionCounter | Number of entries written by all threads performing compactions |
currentFateOps | Gauge | "accumulo.fate.ops" | Gauge | Was previously named "accumulo.fate.ops.in.progress". Changed to better reflect what the gauge is actually tracking which is all the current fate ops in any state. |
FateTxOpType_{name} | Gauge | "accumulo.fate.ops.in.progress.by.type" | 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 | "accumulo.fate.ops.activity" | Gauge | |
totalZkConnErrors | Gauge | "accumulo.fate.errors" | Gauge | |
FateTxState_NEW | Gauge | "accumulo.fate.tx" | Gauge | The state is now in a tag: state=new |
FateTxState_IN_PROGRESS | Gauge | "accumulo.fate.tx" | Gauge | The state is now in a tag: state=in.progress |
FateTxState_FAILED_IN_PROGRESS | Gauge | "accumulo.fate.tx" | Gauge | The state is now in a tag: state=failed.in.progress |
FateTxState_FAILED | Gauge | "accumulo.fate.tx" | Gauge | The state is now in a tag: state=failed |
FateTxState_SUCCESSFUL | Gauge | "accumulo.fate.tx" | Gauge | The state is now in a tag: state=successful |
FateTxState_UNKNOWN | Gauge | "accumulo.fate.tx" | Gauge | The state is now in a tag: state=unknown |
AccGcStarted | Gauge | "accumulo.gc.started" | Gauge | |
AccGcFinished | Gauge | "accumulo.gc.finished" | Gauge | |
AccGcCandidates | Gauge | "accumulo.gc.candidates" | Gauge | |
AccGcInUse | Gauge | "accumulo.gc.in.use" | Gauge | |
AccGcDeleted | Gauge | "accumulo.gc.deleted" | Gauge | |
AccGcErrors | Gauge | "accumulo.gc.errors" | Gauge | |
AccGcWalStarted | Gauge | "accumulo.gc.wal.started" | Gauge | |
AccGcWalFinished | Gauge | "accumulo.gc.wal.finished" | Gauge | |
AccGcWalCandidates | Gauge | "accumulo.gc.wal.candidates" | Gauge | |
AccGcWalInUse | Gauge | "accumulo.gc.wal.in.use" | Gauge | |
AccGcWalDeleted | Gauge | "accumulo.gc.wal.deleted" | Gauge | |
AccGcWalErrors | Gauge | "accumulo.gc.wal.errors" | Gauge | |
AccGcPosOpDuration | Gauge | "accumulo.gc.post.op.duration" | Gauge | |
AccGcRunCycleCount | Gauge | "accumulo.gc.run.cycle" | Gauge | |
entries | Gauge | "accumulo.tserver.entries" | Gauge | |
entriesInMem | Gauge | "accumulo.tserver.entries.mem" | Gauge | |
activeMajCs | Gauge | "accumulo.tserver.majc.running" | Gauge | |
N/A | N/A | "accumulo.tserver.majc.stuck" | LongTaskTimer | |
queuedMajCs | Gauge | "accumulo.tserver.majc.queued" | Gauge | |
activeMinCs | Gauge | "accumulo.tserver.minc.running" | Gauge | |
queuedMinCs | Gauge | "accumulo.tserver.minc.queued" | Gauge | |
totalMinCs | Gauge | "accumulo.tserver.minc.total" | Gauge | |
onlineTablets | Gauge | "accumulo.tserver.tablets.online" | Gauge | |
N/A | N/A | "accumulo.tserver.tablets.assignments.warning" | Gauge | |
openingTablets | Gauge | "accumulo.tserver.tablets.opening" | Gauge | |
unopenedTablets | Gauge | "accumulo.tserver.tablets.unopened" | Gauge | |
filesPerTablet | Gauge | "accumulo.tserver.tablets.files" | Gauge | |
ingestRate | Gauge | "accumulo.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 | "accumulo.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 | "accumulo.tserver.hold" | Gauge | |
N/A | N/A | "accumulo.scan.reservation.total.timer" | Timer | Time to reserve a tablets files for scan |
N/A | N/A | "accumulo.scan.busy.timeout.count" | Counter | Count of the scans where a busy timeout happened |
N/A | N/A | "accumulo.scan.tablet.metadata.cache" | Cache | scan server tablet cache metrics |
scan | Stat | "accumulo.scan.times" | Timer | |
N/A | N/A | "accumulo.scan.files.open" | Gauge | |
result | Stat | "accumulo.scan.result" | Gauge | |
yield | Stat | "accumulo.scan.yields" | Gauge | |
N/A | N/A | "accumulo.scan.start" | Counter | |
N/A | N/A | "accumulo.scan.continue" | Counter | |
N/A | N/A | "accumulo.scan.close" | Counter | |
queries | Gauge | "accumulo.scan.queries" | Gauge | |
scannedRate | Gauge | "accumulo.scan.query.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 | "accumulo.scan.query.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 | "accumulo.scan.query.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 |
{i|e}_{compactionServiceName}_{executor_name}_queued | Gauge | "accumulo.tserver.compactions.majc.queued" | Gauge | The compaction service information is in a tag: id={i|e}_{compactionServiceName}_{executor_name} |
{i|e}_{compactionServiceName}_{executor_name}_running | Gauge | "accumulo.tserver.compactions.majc.running" | Gauge | The compaction service information is in a tag: id={i|e}_{compactionServiceName}_{executor_name} |
Queue | Stat | "accumulo.tserver.compactions.minc.queued" | Timer | |
Minc | Stat | "accumulo.tserver.compactions.minc.running" | Timer | |
ReplicationQueue | Stat | "accumulo.replication.queue" | Timer | |
ReplicationQueue10m | Quantiles | N/A | N/A | |
filesPendingReplication | Stat | "accumulo.replication.files.pending" | Gauge | |
maxReplicationThreads | Stat | "accumulo.replication.threads" | Gauge | |
numPeers | Stat | "accumulo.replication.peers" | Gauge | |
permissionErrors | Counter | "accumulo.tserver.updates.error" | Gauge | Type is stored in tag: type=permission |
unknownTabletErrors | Counter | "accumulo.tserver.updates.error" | Gauge | Type is stored in tag: type=unknown.tablet |
constraintViolations | Counter | "accumulo.tserver.updates.error" | Gauge | Type is stored in tag: type=constraint.violation |
commitPrep | Stat | "accumulo.tserver.updates.commit.prep" | Timer | |
commitTime | Stat | "accumulo.tserver.updates.commit" | Timer | |
waLogWriteTime | Stat | "accumulo.tserver.updates.walog.write" | Timer | |
mutationArraysSize | Stat | "accumulo.tserver.updates.mutation.arrays.size" | Distribution Summary | |
idle | Stat | "accumulo.thrift.idle" | Distribution Summary | |
execute | Stat | "accumulo.thrift.execute" | Distribution Summary | |
N/A | N/A | "accumulo.manager.balancer.migrations.needed" | Gauge | The number of migrations that need to complete before the system is balanced |
- Since:
- 2.1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.slf4j.Logger
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Method Summary
Modifier and TypeMethodDescriptionReturns 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 Details
-
LOG
static final org.slf4j.Logger LOG -
METRICS_SERVER_IDLE
- See Also:
-
METRICS_COMPACTOR_PREFIX
- See Also:
-
METRICS_COMPACTOR_MAJC_STUCK
- See Also:
-
METRICS_COMPACTOR_ENTRIES_READ
- See Also:
-
METRICS_COMPACTOR_ENTRIES_WRITTEN
- See Also:
-
METRICS_FATE_PREFIX
- See Also:
-
METRICS_FATE_TYPE_IN_PROGRESS
- See Also:
-
METRICS_FATE_OPS
- See Also:
-
METRICS_FATE_OPS_ACTIVITY
- See Also:
-
METRICS_FATE_ERRORS
- See Also:
-
METRICS_FATE_TX
- See Also:
-
METRICS_GC_PREFIX
- See Also:
-
METRICS_GC_STARTED
- See Also:
-
METRICS_GC_FINISHED
- See Also:
-
METRICS_GC_CANDIDATES
- See Also:
-
METRICS_GC_IN_USE
- See Also:
-
METRICS_GC_DELETED
- See Also:
-
METRICS_GC_ERRORS
- See Also:
-
METRICS_GC_WAL_STARTED
- See Also:
-
METRICS_GC_WAL_FINISHED
- See Also:
-
METRICS_GC_WAL_CANDIDATES
- See Also:
-
METRICS_GC_WAL_IN_USE
- See Also:
-
METRICS_GC_WAL_DELETED
- See Also:
-
METRICS_GC_WAL_ERRORS
- See Also:
-
METRICS_GC_POST_OP_DURATION
- See Also:
-
METRICS_GC_RUN_CYCLE
- See Also:
-
METRICS_MAJC_PREFIX
- See Also:
-
METRICS_MAJC_QUEUED
- See Also:
-
METRICS_MAJC_RUNNING
- See Also:
-
METRICS_MINC_PREFIX
- See Also:
-
METRICS_MINC_QUEUED
- See Also:
-
METRICS_MINC_RUNNING
- See Also:
-
METRICS_REPLICATION_PREFIX
- See Also:
-
METRICS_REPLICATION_QUEUE
- See Also:
-
METRICS_REPLICATION_PENDING_FILES
- See Also:
-
METRICS_REPLICATION_PEERS
- See Also:
-
METRICS_REPLICATION_THREADS
- See Also:
-
METRICS_SCAN_PREFIX
- See Also:
-
METRICS_SCAN_TIMES
- See Also:
-
METRICS_SCAN_OPEN_FILES
- See Also:
-
METRICS_SCAN_RESULTS
- See Also:
-
METRICS_SCAN_YIELDS
- See Also:
-
METRICS_SCAN_START
- See Also:
-
METRICS_SCAN_CONTINUE
- See Also:
-
METRICS_SCAN_CLOSE
- See Also:
-
METRICS_SCAN_RESERVATION_TOTAL_TIMER
- See Also:
-
METRICS_SCAN_RESERVATION_WRITEOUT_TIMER
- See Also:
-
METRICS_SCAN_BUSY_TIMEOUT_COUNTER
- See Also:
-
METRICS_SCAN_RESERVATION_CONFLICT_COUNTER
- See Also:
-
METRICS_SCAN_QUERIES
- See Also:
-
METRICS_SCAN_QUERY_SCAN_RESULTS
- See Also:
-
METRICS_SCAN_QUERY_SCAN_RESULTS_BYTES
- See Also:
-
METRICS_SCAN_SCANNED_ENTRIES
- See Also:
-
METRICS_SCAN_TABLET_METADATA_CACHE
- See Also:
-
METRICS_TSERVER_PREFIX
- See Also:
-
METRICS_TSERVER_ENTRIES
- See Also:
-
METRICS_TSERVER_MEM_ENTRIES
- See Also:
-
METRICS_TSERVER_MAJC_QUEUED
- See Also:
-
METRICS_TSERVER_MAJC_RUNNING
- See Also:
-
METRICS_TSERVER_MAJC_STUCK
- See Also:
-
METRICS_TSERVER_MINC_QUEUED
- See Also:
-
METRICS_TSERVER_MINC_RUNNING
- See Also:
-
METRICS_TSERVER_MINC_TOTAL
- See Also:
-
METRICS_TSERVER_TABLETS_LONG_ASSIGNMENTS
- See Also:
-
METRICS_TSERVER_TABLETS_ONLINE
- See Also:
-
METRICS_TSERVER_TABLETS_OPENING
- See Also:
-
METRICS_TSERVER_TABLETS_UNOPENED
- See Also:
-
METRICS_TSERVER_TABLETS_FILES
- See Also:
-
METRICS_TSERVER_HOLD
- See Also:
-
METRICS_TSERVER_INGEST_MUTATIONS
- See Also:
-
METRICS_TSERVER_INGEST_BYTES
- See Also:
-
METRICS_THRIFT_PREFIX
- See Also:
-
METRICS_THRIFT_EXECUTE
- See Also:
-
METRICS_THRIFT_IDLE
- See Also:
-
METRICS_UPDATE_PREFIX
- See Also:
-
METRICS_UPDATE_ERRORS
- See Also:
-
METRICS_UPDATE_COMMIT
- See Also:
-
METRICS_UPDATE_COMMIT_PREP
- See Also:
-
METRICS_UPDATE_WALOG_WRITE
- See Also:
-
METRICS_UPDATE_MUTATION_ARRAY_SIZE
- See Also:
-
METRICS_BLOCKCACHE_PREFIX
- See Also:
-
METRICS_BLOCKCACHE_INDEX_HITCOUNT
- See Also:
-
METRICS_BLOCKCACHE_INDEX_REQUESTCOUNT
- See Also:
-
METRICS_BLOCKCACHE_DATA_HITCOUNT
- See Also:
-
METRICS_BLOCKCACHE_DATA_REQUESTCOUNT
- See Also:
-
METRICS_BLOCKCACHE_SUMMARY_HITCOUNT
- See Also:
-
METRICS_BLOCKCACHE_SUMMARY_REQUESTCOUNT
- See Also:
-
METRICS_MANAGER_BALANCER_MIGRATIONS_NEEDED
- See Also:
-
-
Method Details
-
registerMetrics
void registerMetrics(io.micrometer.core.instrument.MeterRegistry registry) Build Micrometer Meter objects and register them with the registry -
getMetricFields
Returns a new mutable mapping of metric field value to metric field name.- Returns:
- map of field names to variable names.
-