Package org.apache.cassandra.metrics
Class KeyspaceMetrics
- java.lang.Object
-
- org.apache.cassandra.metrics.KeyspaceMetrics
-
public class KeyspaceMetrics extends java.lang.ObjectMetrics forColumnFamilyStore.
-
-
Field Summary
Fields Modifier and Type Field Description com.codahale.metrics.CounteradditionalWritesNeeded to write to a transient replica to satisfy quorumcom.codahale.metrics.Gauge<java.lang.Long>allMemtablesLiveDataSizeTotal amount of live data stored in the memtables (2i and pending flush memtables included) that resides off-heap, excluding any data structure overheadcom.codahale.metrics.Gauge<java.lang.Long>allMemtablesOffHeapDataSizeTotal amount of data stored in the memtables (2i and pending flush memtables included) that resides off-heap.com.codahale.metrics.Gauge<java.lang.Long>allMemtablesOnHeapDataSizeTotal amount of data stored in the memtables (2i and pending flush memtables included) that resides on-heap.com.codahale.metrics.TimeranticompactionTimeTime spent anticompactingcom.codahale.metrics.Gauge<java.lang.Long>bloomFilterDiskSpaceUsedDisk space used by bloom filtercom.codahale.metrics.Gauge<java.lang.Long>bloomFilterOffHeapMemoryUsedOff heap memory used by bloom filtercom.codahale.metrics.HistogrambytesValidatedhistogram over the number of bytes we have validatedLatencyMetricscasCommitCAS Commit metricsLatencyMetricscasPrepareCAS Prepare metricLatencyMetricscasProposeCAS Propose metricscom.codahale.metrics.MeterclientTombstoneAbortscom.codahale.metrics.MeterclientTombstoneWarningscom.codahale.metrics.HistogramcolUpdateTimeDeltaHistogramColumn update time delta on this Keyspacecom.codahale.metrics.Gauge<java.lang.Long>compressionMetadataOffHeapMemoryUsedOff heap memory used by compression meta datacom.codahale.metrics.MeterconfirmedRepairedInconsistenciesIncremented where an inconsistency is detected and there are no pending repair sessions affecting the data being read, indicating a genuine mismatch between replicas' repaired data sets.com.codahale.metrics.HistogramcoordinatorReadSizecom.codahale.metrics.MetercoordinatorReadSizeAbortscom.codahale.metrics.MetercoordinatorReadSizeWarningsMetricNameFactoryfactoryLatencyMetricsidealCLWriteLatencyIdeal CL write latency metricscom.codahale.metrics.Gauge<java.lang.Long>indexSummaryOffHeapMemoryUsedOff heap memory used by index summarycom.codahale.metrics.Gauge<java.lang.Long>liveDiskSpaceUsedDisk space used by SSTables belonging to this CFcom.codahale.metrics.HistogramliveScannedHistogramLive cells scanned in queries on this Keyspacecom.codahale.metrics.HistogramlocalReadSizecom.codahale.metrics.MeterlocalReadSizeAbortscom.codahale.metrics.MeterlocalReadSizeWarningscom.codahale.metrics.Gauge<java.lang.Long>memtableColumnsCountTotal number of columns present in the memtable.com.codahale.metrics.Gauge<java.lang.Long>memtableLiveDataSizeTotal amount of live data stored in the memtable, excluding any data structure overheadcom.codahale.metrics.Gauge<java.lang.Long>memtableOffHeapDataSizeTotal amount of data stored in the memtable that resides off-heap, including column related overhead and partitions overwritten.com.codahale.metrics.Gauge<java.lang.Long>memtableOnHeapDataSizeTotal amount of data stored in the memtable that resides on-heap, including column related overhead and partitions overwritten.com.codahale.metrics.Gauge<java.lang.Long>memtableSwitchCountNumber of times flush has resulted in the memtable being switched out.com.codahale.metrics.CounteroutOfRangeTokenPaxosRequestsLifetime count of paxos requests for keys outside the node's owned token ranges for this keyspacecom.codahale.metrics.CounteroutOfRangeTokenReadsLifetime count of reads for keys outside the node's owned token ranges for this keyspacecom.codahale.metrics.CounteroutOfRangeTokenWritesLifetime count of writes for keys outside the node's owned token ranges for this keyspacecom.codahale.metrics.HistogrampartitionsValidatedhistogram over the number of partitions we have validatedcom.codahale.metrics.Gauge<java.lang.Long>pendingCompactionsEstimate of number of pending compactios for this CFcom.codahale.metrics.Gauge<java.lang.Long>pendingFlushesEstimated number of tasks pending for this column familyLatencyMetricsrangeLatency(Local) range slice metricsLatencyMetricsreadLatency(Local) read metricscom.codahale.metrics.HistogramrepairedDataTrackingOverreadRowsTracks the amount overreading of repaired data replicas perform in order to produce digests at query time.com.codahale.metrics.TimerrepairedDataTrackingOverreadTimecom.codahale.metrics.TimerrepairPrepareTimetotal time spent preparing for repaircom.codahale.metrics.CounterrepairsCompletedNumber of completed repairs as coordinator on this keyspacecom.codahale.metrics.CounterrepairsStartedNumber of started repairs as coordinator on this keyspacecom.codahale.metrics.TimerrepairSyncTimetotal time spent syncing data after repaircom.codahale.metrics.TimerrepairTimetotal time spent as a repair coordinatorcom.codahale.metrics.HistogramrowIndexSizecom.codahale.metrics.MeterrowIndexSizeAbortscom.codahale.metrics.MeterrowIndexSizeWarningscom.codahale.metrics.CounterspeculativeFailedRetriesSpeculative retry occured but still timed outcom.codahale.metrics.CounterspeculativeInsufficientReplicasNeeded to speculate, but didn't have enough replicascom.codahale.metrics.CounterspeculativeRetriesSpeculative retriescom.codahale.metrics.HistogramsstablesPerReadHistogramHistogram of the number of sstable data files accessed per readcom.codahale.metrics.HistogramtombstoneScannedHistogramTombstones scanned in queries on this Keyspacecom.codahale.metrics.Gauge<java.lang.Long>totalDiskSpaceUsedTotal disk space used by SSTables belonging to this CF, including obsolete ones waiting to be GC'dcom.codahale.metrics.MeterunconfirmedRepairedInconsistenciesIncremented where an inconsistency is detected, but there are pending & uncommitted repair sessions in play on at least one replica.com.codahale.metrics.TimervalidationTimetotal time spent creating merkle treescom.codahale.metrics.TimerviewLockAcquireTimetime taken acquiring the partition lock for materialized view updates on this keyspacecom.codahale.metrics.TimerviewReadTimetime taken during the local read of a materialized view updatecom.codahale.metrics.CounterwriteFailedIdealCLWrites failed ideal consistencyLatencyMetricswriteLatency(Local) write metrics
-
Constructor Summary
Constructors Constructor Description KeyspaceMetrics(Keyspace ks)Creates metrics for givenColumnFamilyStore.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.codahale.metrics.CountercreateKeyspaceCounter(java.lang.String name)protected com.codahale.metrics.HistogramcreateKeyspaceHistogram(java.lang.String name, boolean considerZeroes)protected com.codahale.metrics.MetercreateKeyspaceMeter(java.lang.String name)protected com.codahale.metrics.TimercreateKeyspaceTimer(java.lang.String name)voidrelease()Release all associated metrics.
-
-
-
Field Detail
-
memtableLiveDataSize
public final com.codahale.metrics.Gauge<java.lang.Long> memtableLiveDataSize
Total amount of live data stored in the memtable, excluding any data structure overhead
-
memtableOnHeapDataSize
public final com.codahale.metrics.Gauge<java.lang.Long> memtableOnHeapDataSize
Total amount of data stored in the memtable that resides on-heap, including column related overhead and partitions overwritten.
-
memtableOffHeapDataSize
public final com.codahale.metrics.Gauge<java.lang.Long> memtableOffHeapDataSize
Total amount of data stored in the memtable that resides off-heap, including column related overhead and partitions overwritten.
-
allMemtablesLiveDataSize
public final com.codahale.metrics.Gauge<java.lang.Long> allMemtablesLiveDataSize
Total amount of live data stored in the memtables (2i and pending flush memtables included) that resides off-heap, excluding any data structure overhead
-
allMemtablesOnHeapDataSize
public final com.codahale.metrics.Gauge<java.lang.Long> allMemtablesOnHeapDataSize
Total amount of data stored in the memtables (2i and pending flush memtables included) that resides on-heap.
-
allMemtablesOffHeapDataSize
public final com.codahale.metrics.Gauge<java.lang.Long> allMemtablesOffHeapDataSize
Total amount of data stored in the memtables (2i and pending flush memtables included) that resides off-heap.
-
memtableColumnsCount
public final com.codahale.metrics.Gauge<java.lang.Long> memtableColumnsCount
Total number of columns present in the memtable.
-
memtableSwitchCount
public final com.codahale.metrics.Gauge<java.lang.Long> memtableSwitchCount
Number of times flush has resulted in the memtable being switched out.
-
pendingFlushes
public final com.codahale.metrics.Gauge<java.lang.Long> pendingFlushes
Estimated number of tasks pending for this column family
-
pendingCompactions
public final com.codahale.metrics.Gauge<java.lang.Long> pendingCompactions
Estimate of number of pending compactios for this CF
-
liveDiskSpaceUsed
public final com.codahale.metrics.Gauge<java.lang.Long> liveDiskSpaceUsed
Disk space used by SSTables belonging to this CF
-
totalDiskSpaceUsed
public final com.codahale.metrics.Gauge<java.lang.Long> totalDiskSpaceUsed
Total disk space used by SSTables belonging to this CF, including obsolete ones waiting to be GC'd
-
bloomFilterDiskSpaceUsed
public final com.codahale.metrics.Gauge<java.lang.Long> bloomFilterDiskSpaceUsed
Disk space used by bloom filter
-
bloomFilterOffHeapMemoryUsed
public final com.codahale.metrics.Gauge<java.lang.Long> bloomFilterOffHeapMemoryUsed
Off heap memory used by bloom filter
-
indexSummaryOffHeapMemoryUsed
public final com.codahale.metrics.Gauge<java.lang.Long> indexSummaryOffHeapMemoryUsed
Off heap memory used by index summary
-
compressionMetadataOffHeapMemoryUsed
public final com.codahale.metrics.Gauge<java.lang.Long> compressionMetadataOffHeapMemoryUsed
Off heap memory used by compression meta data
-
readLatency
public final LatencyMetrics readLatency
(Local) read metrics
-
rangeLatency
public final LatencyMetrics rangeLatency
(Local) range slice metrics
-
writeLatency
public final LatencyMetrics writeLatency
(Local) write metrics
-
sstablesPerReadHistogram
public final com.codahale.metrics.Histogram sstablesPerReadHistogram
Histogram of the number of sstable data files accessed per read
-
tombstoneScannedHistogram
public final com.codahale.metrics.Histogram tombstoneScannedHistogram
Tombstones scanned in queries on this Keyspace
-
liveScannedHistogram
public final com.codahale.metrics.Histogram liveScannedHistogram
Live cells scanned in queries on this Keyspace
-
colUpdateTimeDeltaHistogram
public final com.codahale.metrics.Histogram colUpdateTimeDeltaHistogram
Column update time delta on this Keyspace
-
viewLockAcquireTime
public final com.codahale.metrics.Timer viewLockAcquireTime
time taken acquiring the partition lock for materialized view updates on this keyspace
-
viewReadTime
public final com.codahale.metrics.Timer viewReadTime
time taken during the local read of a materialized view update
-
casPrepare
public final LatencyMetrics casPrepare
CAS Prepare metric
-
casPropose
public final LatencyMetrics casPropose
CAS Propose metrics
-
casCommit
public final LatencyMetrics casCommit
CAS Commit metrics
-
writeFailedIdealCL
public final com.codahale.metrics.Counter writeFailedIdealCL
Writes failed ideal consistency
-
idealCLWriteLatency
public final LatencyMetrics idealCLWriteLatency
Ideal CL write latency metrics
-
speculativeRetries
public final com.codahale.metrics.Counter speculativeRetries
Speculative retries
-
speculativeFailedRetries
public final com.codahale.metrics.Counter speculativeFailedRetries
Speculative retry occured but still timed out
-
speculativeInsufficientReplicas
public final com.codahale.metrics.Counter speculativeInsufficientReplicas
Needed to speculate, but didn't have enough replicas
-
additionalWrites
public final com.codahale.metrics.Counter additionalWrites
Needed to write to a transient replica to satisfy quorum
-
repairsStarted
public final com.codahale.metrics.Counter repairsStarted
Number of started repairs as coordinator on this keyspace
-
repairsCompleted
public final com.codahale.metrics.Counter repairsCompleted
Number of completed repairs as coordinator on this keyspace
-
repairTime
public final com.codahale.metrics.Timer repairTime
total time spent as a repair coordinator
-
repairPrepareTime
public final com.codahale.metrics.Timer repairPrepareTime
total time spent preparing for repair
-
anticompactionTime
public final com.codahale.metrics.Timer anticompactionTime
Time spent anticompacting
-
validationTime
public final com.codahale.metrics.Timer validationTime
total time spent creating merkle trees
-
repairSyncTime
public final com.codahale.metrics.Timer repairSyncTime
total time spent syncing data after repair
-
bytesValidated
public final com.codahale.metrics.Histogram bytesValidated
histogram over the number of bytes we have validated
-
partitionsValidated
public final com.codahale.metrics.Histogram partitionsValidated
histogram over the number of partitions we have validated
-
outOfRangeTokenReads
public final com.codahale.metrics.Counter outOfRangeTokenReads
Lifetime count of reads for keys outside the node's owned token ranges for this keyspace
-
outOfRangeTokenWrites
public final com.codahale.metrics.Counter outOfRangeTokenWrites
Lifetime count of writes for keys outside the node's owned token ranges for this keyspace
-
outOfRangeTokenPaxosRequests
public final com.codahale.metrics.Counter outOfRangeTokenPaxosRequests
Lifetime count of paxos requests for keys outside the node's owned token ranges for this keyspace
-
confirmedRepairedInconsistencies
public final com.codahale.metrics.Meter confirmedRepairedInconsistencies
Incremented where an inconsistency is detected and there are no pending repair sessions affecting the data being read, indicating a genuine mismatch between replicas' repaired data sets.
-
unconfirmedRepairedInconsistencies
public final com.codahale.metrics.Meter unconfirmedRepairedInconsistencies
Incremented where an inconsistency is detected, but there are pending & uncommitted repair sessions in play on at least one replica. This may indicate a false positive as the inconsistency could be due to replicas marking the repair session as committed at slightly different times and so some consider it to be part of the repaired set whilst others do not.
-
repairedDataTrackingOverreadRows
public final com.codahale.metrics.Histogram repairedDataTrackingOverreadRows
Tracks the amount overreading of repaired data replicas perform in order to produce digests at query time. For each query, on a full data read following an initial digest mismatch, the replicas may read extra repaired data, up to the DataLimit of the command, so that the coordinator can compare the repaired data on each replica. These are tracked on each replica.
-
repairedDataTrackingOverreadTime
public final com.codahale.metrics.Timer repairedDataTrackingOverreadTime
-
clientTombstoneWarnings
public final com.codahale.metrics.Meter clientTombstoneWarnings
-
clientTombstoneAborts
public final com.codahale.metrics.Meter clientTombstoneAborts
-
coordinatorReadSizeWarnings
public final com.codahale.metrics.Meter coordinatorReadSizeWarnings
-
coordinatorReadSizeAborts
public final com.codahale.metrics.Meter coordinatorReadSizeAborts
-
coordinatorReadSize
public final com.codahale.metrics.Histogram coordinatorReadSize
-
localReadSizeWarnings
public final com.codahale.metrics.Meter localReadSizeWarnings
-
localReadSizeAborts
public final com.codahale.metrics.Meter localReadSizeAborts
-
localReadSize
public final com.codahale.metrics.Histogram localReadSize
-
rowIndexSizeWarnings
public final com.codahale.metrics.Meter rowIndexSizeWarnings
-
rowIndexSizeAborts
public final com.codahale.metrics.Meter rowIndexSizeAborts
-
rowIndexSize
public final com.codahale.metrics.Histogram rowIndexSize
-
factory
public final MetricNameFactory factory
-
-
Constructor Detail
-
KeyspaceMetrics
public KeyspaceMetrics(Keyspace ks)
Creates metrics for givenColumnFamilyStore.- Parameters:
ks- Keyspace to measure metrics
-
-
Method Detail
-
release
public void release()
Release all associated metrics.
-
createKeyspaceCounter
protected com.codahale.metrics.Counter createKeyspaceCounter(java.lang.String name)
-
createKeyspaceHistogram
protected com.codahale.metrics.Histogram createKeyspaceHistogram(java.lang.String name, boolean considerZeroes)
-
createKeyspaceTimer
protected com.codahale.metrics.Timer createKeyspaceTimer(java.lang.String name)
-
createKeyspaceMeter
protected com.codahale.metrics.Meter createKeyspaceMeter(java.lang.String name)
-
-