Package org.apache.cassandra.metrics
Class KeyspaceMetrics
java.lang.Object
org.apache.cassandra.metrics.KeyspaceMetrics
Metrics for
ColumnFamilyStore.-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal com.codahale.metrics.CounterNeeded to write to a transient replica to satisfy quorumfinal com.codahale.metrics.Gauge<Long>Total amount of live data stored in the memtables (2i and pending flush memtables included) that resides off-heap, excluding any data structure overheadfinal com.codahale.metrics.Gauge<Long>Total amount of data stored in the memtables (2i and pending flush memtables included) that resides off-heap.final com.codahale.metrics.Gauge<Long>Total amount of data stored in the memtables (2i and pending flush memtables included) that resides on-heap.final com.codahale.metrics.TimerTime spent anticompactingfinal com.codahale.metrics.Meterfinal com.codahale.metrics.Meterfinal com.codahale.metrics.Meterfinal com.codahale.metrics.Meterfinal com.codahale.metrics.Histogramhistogram over the number of bytes we have validatedfinal LatencyMetricsCAS Commit metricsfinal LatencyMetricsCAS Prepare metricfinal LatencyMetricsCAS Propose metricsfinal com.codahale.metrics.Meterfinal com.codahale.metrics.Meterfinal com.codahale.metrics.HistogramColumn update time delta on this Keyspacefinal com.codahale.metrics.Gauge<Long>Off heap memory used by compression meta datafinal com.codahale.metrics.MeterIncremented 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.final com.codahale.metrics.Histogramfinal com.codahale.metrics.Meterfinal com.codahale.metrics.Meterfinal MetricNameFactoryfinal com.google.common.collect.ImmutableMap<SSTableFormat<?,?>, com.google.common.collect.ImmutableMap<String, com.codahale.metrics.Gauge<? extends Number>>> final LatencyMetricsIdeal CL write latency metricsfinal com.codahale.metrics.Gauge<Long>Disk space used by SSTables belonging to tables in this keyspacefinal com.codahale.metrics.HistogramLive cells scanned in queries on this Keyspacefinal com.codahale.metrics.Histogramfinal com.codahale.metrics.Meterfinal com.codahale.metrics.Meterfinal com.codahale.metrics.Gauge<Long>Total number of columns present in the memtable.final com.codahale.metrics.Gauge<Long>Total amount of live data stored in the memtable, excluding any data structure overheadfinal com.codahale.metrics.Gauge<Long>Total amount of data stored in the memtable that resides off-heap, including column related overhead and partitions overwritten.final com.codahale.metrics.Gauge<Long>Total amount of data stored in the memtable that resides on-heap, including column related overhead and partitions overwritten.final com.codahale.metrics.Gauge<Long>Number of times flush has resulted in the memtable being switched out.final com.codahale.metrics.CounterLifetime count of paxos requests for keys outside the node's owned token ranges for this keyspacefinal com.codahale.metrics.CounterLifetime count of reads for keys outside the node's owned token ranges for this keyspacefinal com.codahale.metrics.CounterLifetime count of writes for keys outside the node's owned token ranges for this keyspacefinal com.codahale.metrics.Histogramhistogram over the number of partitions we have validatedfinal com.codahale.metrics.Gauge<Long>Estimate of number of pending compactios for this CFfinal com.codahale.metrics.Gauge<Long>Estimated number of tasks pending for this column familyfinal LatencyMetrics(Local) range slice metricsfinal LatencyMetrics(Local) read metricsfinal com.codahale.metrics.HistogramTracks the amount overreading of repaired data replicas perform in order to produce digests at query time.final com.codahale.metrics.Timerfinal com.codahale.metrics.Timertotal time spent preparing for repairfinal com.codahale.metrics.CounterNumber of completed repairs as coordinator on this keyspacefinal com.codahale.metrics.CounterNumber of started repairs as coordinator on this keyspacefinal com.codahale.metrics.Timertotal time spent syncing data after repairfinal com.codahale.metrics.Timertotal time spent as a repair coordinatorfinal com.codahale.metrics.Histogramfinal com.codahale.metrics.Meterfinal com.codahale.metrics.Meterfinal com.codahale.metrics.CounterSpeculative retry occured but still timed outfinal com.codahale.metrics.CounterNeeded to speculate, but didn't have enough replicasfinal com.codahale.metrics.CounterSpeculative retriesfinal com.codahale.metrics.HistogramHistogram of the number of sstable data files accessed per partition range readfinal com.codahale.metrics.HistogramHistogram of the number of sstable data files accessed per single partition readfinal com.codahale.metrics.Meterfinal com.codahale.metrics.HistogramTombstones scanned in queries on this Keyspacefinal com.codahale.metrics.Meterfinal com.codahale.metrics.Meterfinal com.codahale.metrics.Gauge<Long>final com.codahale.metrics.Gauge<Long>Uncompressed/logical size of SSTables belonging to tables in this keyspacefinal com.codahale.metrics.MeterIncremented where an inconsistency is detected, but there are pending & uncommitted repair sessions in play on at least one replica.final com.codahale.metrics.Gauge<Long>Disk space used by SSTables belonging to tables in this keyspace, scaled down by replication factorfinal com.codahale.metrics.Gauge<Long>Uncompressed/logical size of SSTables belonging to tables in this keyspace, scaled down by replication factorfinal com.codahale.metrics.Timertotal time spent creating merkle treesfinal com.codahale.metrics.Timertime taken acquiring the partition lock for materialized view updates on this keyspacefinal com.codahale.metrics.Timertime taken during the local read of a materialized view updatefinal com.codahale.metrics.CounterWrites failed ideal consistencyfinal LatencyMetrics(Local) write metrics -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.codahale.metrics.CountercreateKeyspaceCounter(String name) protected com.codahale.metrics.HistogramcreateKeyspaceHistogram(String name, boolean considerZeroes) protected com.codahale.metrics.MetercreateKeyspaceMeter(String name) protected com.codahale.metrics.TimercreateKeyspaceTimer(String name) voidrelease()Release all associated metrics.
-
Field Details
-
memtableLiveDataSize
Total amount of live data stored in the memtable, excluding any data structure overhead -
memtableOnHeapDataSize
Total amount of data stored in the memtable that resides on-heap, including column related overhead and partitions overwritten. -
memtableOffHeapDataSize
Total amount of data stored in the memtable that resides off-heap, including column related overhead and partitions overwritten. -
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
Total amount of data stored in the memtables (2i and pending flush memtables included) that resides on-heap. -
allMemtablesOffHeapDataSize
Total amount of data stored in the memtables (2i and pending flush memtables included) that resides off-heap. -
memtableColumnsCount
Total number of columns present in the memtable. -
memtableSwitchCount
Number of times flush has resulted in the memtable being switched out. -
pendingFlushes
Estimated number of tasks pending for this column family -
pendingCompactions
Estimate of number of pending compactios for this CF -
liveDiskSpaceUsed
Disk space used by SSTables belonging to tables in this keyspace -
unreplicatedLiveDiskSpaceUsed
Disk space used by SSTables belonging to tables in this keyspace, scaled down by replication factor -
uncompressedLiveDiskSpaceUsed
Uncompressed/logical size of SSTables belonging to tables in this keyspace -
unreplicatedUncompressedLiveDiskSpaceUsed
Uncompressed/logical size of SSTables belonging to tables in this keyspace, scaled down by replication factor -
totalDiskSpaceUsed
-
compressionMetadataOffHeapMemoryUsed
Off heap memory used by compression meta data -
readLatency
(Local) read metrics -
rangeLatency
(Local) range slice metrics -
writeLatency
(Local) write metrics -
sstablesPerReadHistogram
public final com.codahale.metrics.Histogram sstablesPerReadHistogramHistogram of the number of sstable data files accessed per single partition read -
sstablesPerRangeReadHistogram
public final com.codahale.metrics.Histogram sstablesPerRangeReadHistogramHistogram of the number of sstable data files accessed per partition range read -
tombstoneScannedHistogram
public final com.codahale.metrics.Histogram tombstoneScannedHistogramTombstones scanned in queries on this Keyspace -
liveScannedHistogram
public final com.codahale.metrics.Histogram liveScannedHistogramLive cells scanned in queries on this Keyspace -
colUpdateTimeDeltaHistogram
public final com.codahale.metrics.Histogram colUpdateTimeDeltaHistogramColumn update time delta on this Keyspace -
viewLockAcquireTime
public final com.codahale.metrics.Timer viewLockAcquireTimetime taken acquiring the partition lock for materialized view updates on this keyspace -
viewReadTime
public final com.codahale.metrics.Timer viewReadTimetime taken during the local read of a materialized view update -
casPrepare
CAS Prepare metric -
casPropose
CAS Propose metrics -
casCommit
CAS Commit metrics -
writeFailedIdealCL
public final com.codahale.metrics.Counter writeFailedIdealCLWrites failed ideal consistency -
idealCLWriteLatency
Ideal CL write latency metrics -
speculativeRetries
public final com.codahale.metrics.Counter speculativeRetriesSpeculative retries -
speculativeFailedRetries
public final com.codahale.metrics.Counter speculativeFailedRetriesSpeculative retry occured but still timed out -
speculativeInsufficientReplicas
public final com.codahale.metrics.Counter speculativeInsufficientReplicasNeeded to speculate, but didn't have enough replicas -
additionalWrites
public final com.codahale.metrics.Counter additionalWritesNeeded to write to a transient replica to satisfy quorum -
repairsStarted
public final com.codahale.metrics.Counter repairsStartedNumber of started repairs as coordinator on this keyspace -
repairsCompleted
public final com.codahale.metrics.Counter repairsCompletedNumber of completed repairs as coordinator on this keyspace -
repairTime
public final com.codahale.metrics.Timer repairTimetotal time spent as a repair coordinator -
repairPrepareTime
public final com.codahale.metrics.Timer repairPrepareTimetotal time spent preparing for repair -
anticompactionTime
public final com.codahale.metrics.Timer anticompactionTimeTime spent anticompacting -
validationTime
public final com.codahale.metrics.Timer validationTimetotal time spent creating merkle trees -
repairSyncTime
public final com.codahale.metrics.Timer repairSyncTimetotal time spent syncing data after repair -
bytesValidated
public final com.codahale.metrics.Histogram bytesValidatedhistogram over the number of bytes we have validated -
partitionsValidated
public final com.codahale.metrics.Histogram partitionsValidatedhistogram over the number of partitions we have validated -
outOfRangeTokenReads
public final com.codahale.metrics.Counter outOfRangeTokenReadsLifetime count of reads for keys outside the node's owned token ranges for this keyspace -
outOfRangeTokenWrites
public final com.codahale.metrics.Counter outOfRangeTokenWritesLifetime count of writes for keys outside the node's owned token ranges for this keyspace -
outOfRangeTokenPaxosRequests
public final com.codahale.metrics.Counter outOfRangeTokenPaxosRequestsLifetime count of paxos requests for keys outside the node's owned token ranges for this keyspace -
confirmedRepairedInconsistencies
public final com.codahale.metrics.Meter confirmedRepairedInconsistenciesIncremented 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 unconfirmedRepairedInconsistenciesIncremented 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 repairedDataTrackingOverreadRowsTracks 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 -
tooManySSTableIndexesReadWarnings
public final com.codahale.metrics.Meter tooManySSTableIndexesReadWarnings -
tooManySSTableIndexesReadAborts
public final com.codahale.metrics.Meter tooManySSTableIndexesReadAborts -
formatSpecificGauges
public final com.google.common.collect.ImmutableMap<SSTableFormat<?,?>, formatSpecificGaugescom.google.common.collect.ImmutableMap<String, com.codahale.metrics.Gauge<? extends Number>>> -
bytesAnticompacted
public final com.codahale.metrics.Meter bytesAnticompacted -
bytesMutatedAnticompaction
public final com.codahale.metrics.Meter bytesMutatedAnticompaction -
bytesPreviewed
public final com.codahale.metrics.Meter bytesPreviewed -
tokenRangesPreviewedDesynchronized
public final com.codahale.metrics.Meter tokenRangesPreviewedDesynchronized -
bytesPreviewedDesynchronized
public final com.codahale.metrics.Meter bytesPreviewedDesynchronized -
factory
-
-
Constructor Details
-
KeyspaceMetrics
Creates metrics for givenColumnFamilyStore.- Parameters:
ks- Keyspace to measure metrics
-
-
Method Details
-
release
public void release()Release all associated metrics. -
createKeyspaceCounter
-
createKeyspaceHistogram
protected com.codahale.metrics.Histogram createKeyspaceHistogram(String name, boolean considerZeroes) -
createKeyspaceTimer
-
createKeyspaceMeter
-