KeyspaceMetrics (apache-cassandra API)
Date: 2014-10-21

org.apache.cassandra.metrics

## Class KeyspaceMetrics

- java.lang.Object
- - org.apache.cassandra.metrics.KeyspaceMetrics

-     public class KeyspaceMetrics
      extends java.lang.Object

  Metrics for `ColumnFamilyStore`.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `com.yammer.metrics.core.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
    `com.yammer.metrics.core.Gauge<java.lang.Long>` | `allMemtablesOffHeapDataSize` Total amount of data stored in the memtables (2i and pending flush memtables included) that resides off-heap.
    `com.yammer.metrics.core.Gauge<java.lang.Long>` | `allMemtablesOnHeapDataSize` Total amount of data stored in the memtables (2i and pending flush memtables included) that resides on-heap.
    `com.yammer.metrics.core.Gauge<java.lang.Long>` | `bloomFilterDiskSpaceUsed` Disk space used by bloom filter
    `LatencyMetrics` | `casCommit` CAS Commit metrics
    `LatencyMetrics` | `casPrepare` CAS Prepare metric
    `LatencyMetrics` | `casPropose` CAS Propose metrics
    `MetricNameFactory` | `factory`
    `com.yammer.metrics.core.Gauge<java.lang.Long>` | `liveDiskSpaceUsed` Disk space used by SSTables belonging to this CF
    `com.yammer.metrics.core.Histogram` | `liveScannedHistogram` Live cells scanned in queries on this Keyspace
    `com.yammer.metrics.core.Gauge<java.lang.Long>` | `memtableColumnsCount` Total number of columns present in the memtable.
    `com.yammer.metrics.core.Gauge<java.lang.Long>` | `memtableLiveDataSize` Total amount of live data stored in the memtable, excluding any data structure overhead
    `com.yammer.metrics.core.Gauge<java.lang.Long>` | `memtableOffHeapDataSize` Total amount of data stored in the memtable that resides off-heap, including column related overhead and overwritten rows.
    `com.yammer.metrics.core.Gauge<java.lang.Long>` | `memtableOnHeapDataSize` Total amount of data stored in the memtable that resides on-heap, including column related overhead and overwritten rows.
    `com.yammer.metrics.core.Gauge<java.lang.Long>` | `memtableSwitchCount` Number of times flush has resulted in the memtable being switched out.
    `com.yammer.metrics.core.Gauge<java.lang.Long>` | `pendingCompactions` Estimate of number of pending compactios for this CF
    `com.yammer.metrics.core.Gauge<java.lang.Long>` | `pendingFlushes` Estimated number of tasks pending for this column family
    `LatencyMetrics` | `rangeLatency` (Local) range slice metrics
    `LatencyMetrics` | `readLatency` (Local) read metrics
    `com.yammer.metrics.core.Histogram` | `sstablesPerReadHistogram` Histogram of the number of sstable data files accessed per read
    `com.yammer.metrics.core.Histogram` | `tombstoneScannedHistogram` Tombstones scanned in queries on this Keyspace
    `com.yammer.metrics.core.Gauge<java.lang.Long>` | `totalDiskSpaceUsed` Total disk space used by SSTables belonging to this CF, including obsolete ones waiting to be GC'd
    `LatencyMetrics` | `writeLatency` (Local) write metrics

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `KeyspaceMetrics(Keyspace ks)` Creates metrics for given `ColumnFamilyStore`.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `release()` Release all associated metrics.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### memtableLiveDataSize

          public final com.yammer.metrics.core.Gauge<java.lang.Long> memtableLiveDataSize

      Total amount of live data stored in the memtable, excluding any data structure overhead

    - #### memtableOnHeapDataSize

          public final com.yammer.metrics.core.Gauge<java.lang.Long> memtableOnHeapDataSize

      Total amount of data stored in the memtable that resides on-heap, including column related overhead and overwritten rows.

    - #### memtableOffHeapDataSize

          public final com.yammer.metrics.core.Gauge<java.lang.Long> memtableOffHeapDataSize

      Total amount of data stored in the memtable that resides off-heap, including column related overhead and overwritten rows.

    - #### allMemtablesLiveDataSize

          public final com.yammer.metrics.core.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.yammer.metrics.core.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.yammer.metrics.core.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.yammer.metrics.core.Gauge<java.lang.Long> memtableColumnsCount

      Total number of columns present in the memtable.

    - #### memtableSwitchCount

          public final com.yammer.metrics.core.Gauge<java.lang.Long> memtableSwitchCount

      Number of times flush has resulted in the memtable being switched out.

    - #### pendingFlushes

          public final com.yammer.metrics.core.Gauge<java.lang.Long> pendingFlushes

      Estimated number of tasks pending for this column family

    - #### pendingCompactions

          public final com.yammer.metrics.core.Gauge<java.lang.Long> pendingCompactions

      Estimate of number of pending compactios for this CF

    - #### liveDiskSpaceUsed

          public final com.yammer.metrics.core.Gauge<java.lang.Long> liveDiskSpaceUsed

      Disk space used by SSTables belonging to this CF

    - #### totalDiskSpaceUsed

          public final com.yammer.metrics.core.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.yammer.metrics.core.Gauge<java.lang.Long> bloomFilterDiskSpaceUsed

      Disk space used by bloom filter

    - #### 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.yammer.metrics.core.Histogram sstablesPerReadHistogram

      Histogram of the number of sstable data files accessed per read

    - #### tombstoneScannedHistogram

          public final com.yammer.metrics.core.Histogram tombstoneScannedHistogram

      Tombstones scanned in queries on this Keyspace

    - #### liveScannedHistogram

          public final com.yammer.metrics.core.Histogram liveScannedHistogram

      Live cells scanned in queries on this Keyspace

    - #### casPrepare

          public final LatencyMetrics casPrepare

      CAS Prepare metric

    - #### casPropose

          public final LatencyMetrics casPropose

      CAS Propose metrics

    - #### casCommit

          public final LatencyMetrics casCommit

      CAS Commit metrics

    - #### factory

          public final MetricNameFactory factory

  - ### Constructor Detail

    - #### KeyspaceMetrics

          public KeyspaceMetrics(Keyspace ks)

      Creates metrics for given `ColumnFamilyStore`.
      Parameters:
        `ks` - Keyspace to measure metrics

  - ### Method Detail

    - #### release

          public void release()

      Release all associated metrics.

Copyright © 2014 The Apache Software Foundation