@PublicEvolving public class RocksDBNativeMetricOptions extends Object implements Serializable
Property based metrics would report at the column family level and return unsigned long values.
Statistics based metrics would report at the database level, it can return ticker or histogram kind results.
Properties and doc comments are taken from RocksDB documentation. See db.h for more information.
Constructor and Description |
---|
RocksDBNativeMetricOptions() |
Modifier and Type | Method and Description |
---|---|
void |
enableActualDelayedWriteRate()
Returns the current actual delayed write rate. 0 means no delay.
|
void |
enableBackgroundErrors()
Returns accumulated number of background errors.
|
void |
enableBlockCacheCapacity()
Returns block cache capacity.
|
void |
enableBlockCachePinnedUsage()
Returns the memory size for the entries being pinned in block cache.
|
void |
enableBlockCacheUsage()
Returns the memory size for the entries residing in block cache.
|
void |
enableCompactionPending()
Returns 1 if at least one compaction is pending; otherwise, returns 0.
|
void |
enableCurSizeActiveMemTable()
Returns approximate size of active memtable (bytes).
|
void |
enableCurSizeAllMemTables()
Returns approximate size of active and unflushed immutable memtables (bytes).
|
void |
enableEstimateLiveDataSize()
Returns an estimate of the amount of live data in bytes.
|
void |
enableEstimateNumKeys()
Returns estimated number of total keys in the active and unflushed immutable memtables and
storage.
|
void |
enableEstimatePendingCompactionBytes()
Returns estimated total number of bytes compaction needs to rewrite to get all levels down to
under target size.
|
void |
enableEstimateTableReadersMem()
Returns estimated memory used for reading SST tables, excluding memory used in block cache
(e.g.
|
void |
enableIsWriteStopped()
Returns 1 if write has been stopped.
|
void |
enableLiveSstFilesSize() |
void |
enableMemTableFlushPending()
Returns 1 if a memtable flush is pending; otherwise, returns 0.
|
void |
enableNativeStatistics(ConfigOption<Boolean> nativeStatisticsOption) |
void |
enableNumDeletesActiveMemTable()
Returns total number of delete entries in the active memtable.
|
void |
enableNumDeletesImmMemTables()
Returns total number of delete entries in the unflushed immutable memtables.
|
void |
enableNumEntriesActiveMemTable()
Returns total number of entries in the active memtable.
|
void |
enableNumEntriesImmMemTables()
Returns total number of entries in the unflushed immutable memtables.
|
void |
enableNumFilesAtLevel()
Returns the number of files per level.
|
void |
enableNumImmutableMemTable()
Returns number of immutable memtables that have not yet been flushed.
|
void |
enableNumLiveVersions()
Returns number of live versions.
|
void |
enableNumRunningCompactions()
Returns the number of currently running compactions.
|
void |
enableNumRunningFlushes()
Returns the number of currently running flushes.
|
void |
enableNumSnapshots()
Returns number of unreleased snapshots of the database.
|
void |
enableSizeAllMemTables()
Returns approximate size of active, unflushed immutable, and pinned immutable memtables
(bytes).
|
void |
enableTotalSstFilesSize()
Returns total size (bytes) of all SST files.
|
static RocksDBNativeMetricOptions |
fromConfig(ReadableConfig config)
Creates a
RocksDBNativeMetricOptions based on an external configuration. |
Collection<org.rocksdb.TickerType> |
getMonitorTickerTypes() |
Collection<RocksDBProperty> |
getProperties() |
boolean |
isColumnFamilyAsVariable()
{
RocksDBNativeMetricMonitor } Whether to expose the column family as a variable.. |
boolean |
isEnabled()
{
RocksDBNativeMetricMonitor } is enabled if any property or ticker type is set. |
boolean |
isStatisticsEnabled() |
void |
setColumnFamilyAsVariable(boolean columnFamilyAsVariable)
Returns the column family as variable.
|
public static final String METRICS_COLUMN_FAMILY_AS_VARIABLE_KEY
public static final ConfigOption<Boolean> MONITOR_NUM_IMMUTABLE_MEM_TABLES
public static final ConfigOption<Boolean> MONITOR_MEM_TABLE_FLUSH_PENDING
public static final ConfigOption<Boolean> TRACK_COMPACTION_PENDING
public static final ConfigOption<Boolean> MONITOR_BACKGROUND_ERRORS
public static final ConfigOption<Boolean> MONITOR_CUR_SIZE_ACTIVE_MEM_TABLE
public static final ConfigOption<Boolean> MONITOR_CUR_SIZE_ALL_MEM_TABLE
public static final ConfigOption<Boolean> MONITOR_SIZE_ALL_MEM_TABLES
public static final ConfigOption<Boolean> MONITOR_NUM_ENTRIES_ACTIVE_MEM_TABLE
public static final ConfigOption<Boolean> MONITOR_NUM_ENTRIES_IMM_MEM_TABLES
public static final ConfigOption<Boolean> MONITOR_NUM_DELETES_ACTIVE_MEM_TABLE
public static final ConfigOption<Boolean> MONITOR_NUM_DELETES_IMM_MEM_TABLE
public static final ConfigOption<Boolean> ESTIMATE_NUM_KEYS
public static final ConfigOption<Boolean> ESTIMATE_TABLE_READERS_MEM
public static final ConfigOption<Boolean> MONITOR_NUM_SNAPSHOTS
public static final ConfigOption<Boolean> MONITOR_NUM_LIVE_VERSIONS
public static final ConfigOption<Boolean> ESTIMATE_LIVE_DATA_SIZE
public static final ConfigOption<Boolean> MONITOR_TOTAL_SST_FILES_SIZE
public static final ConfigOption<Boolean> MONITOR_LIVE_SST_FILES_SIZE
public static final ConfigOption<Boolean> ESTIMATE_PENDING_COMPACTION_BYTES
public static final ConfigOption<Boolean> MONITOR_NUM_RUNNING_COMPACTIONS
public static final ConfigOption<Boolean> MONITOR_NUM_RUNNING_FLUSHES
public static final ConfigOption<Boolean> MONITOR_ACTUAL_DELAYED_WRITE_RATE
public static final ConfigOption<Boolean> IS_WRITE_STOPPED
public static final ConfigOption<Boolean> BLOCK_CACHE_CAPACITY
public static final ConfigOption<Boolean> BLOCK_CACHE_USAGE
public static final ConfigOption<Boolean> BLOCK_CACHE_PINNED_USAGE
public static final ConfigOption<Boolean> COLUMN_FAMILY_AS_VARIABLE
public static final ConfigOption<Boolean> MONITOR_NUM_FILES_AT_LEVEL
public static final ConfigOption<Boolean> MONITOR_BLOCK_CACHE_HIT
public static final ConfigOption<Boolean> MONITOR_BLOCK_CACHE_MISS
public static final ConfigOption<Boolean> MONITOR_BLOOM_FILTER_USEFUL
public static final ConfigOption<Boolean> MONITOR_BLOOM_FILTER_FULL_POSITIVE
public static final ConfigOption<Boolean> MONITOR_BLOOM_FILTER_FULL_TRUE_POSITIVE
public static final ConfigOption<Boolean> MONITOR_BYTES_READ
public static final ConfigOption<Boolean> MONITOR_ITER_BYTES_READ
public static final ConfigOption<Boolean> MONITOR_BYTES_WRITTEN
public static final ConfigOption<Boolean> MONITOR_COMPACTION_READ_BYTES
public static final ConfigOption<Boolean> MONITOR_COMPACTION_WRITE_BYTES
public static final ConfigOption<Boolean> MONITOR_STALL_MICROS
public static RocksDBNativeMetricOptions fromConfig(ReadableConfig config)
RocksDBNativeMetricOptions
based on an external configuration.@VisibleForTesting public void enableNativeStatistics(ConfigOption<Boolean> nativeStatisticsOption)
public void enableNumImmutableMemTable()
public void enableMemTableFlushPending()
public void enableCompactionPending()
public void enableBackgroundErrors()
public void enableCurSizeActiveMemTable()
public void enableCurSizeAllMemTables()
public void enableSizeAllMemTables()
public void enableNumEntriesActiveMemTable()
public void enableNumEntriesImmMemTables()
public void enableNumDeletesActiveMemTable()
public void enableNumDeletesImmMemTables()
public void enableEstimateNumKeys()
public void enableEstimateTableReadersMem()
public void enableNumSnapshots()
public void enableNumLiveVersions()
public void enableEstimateLiveDataSize()
public void enableTotalSstFilesSize()
public void enableLiveSstFilesSize()
public void enableEstimatePendingCompactionBytes()
public void enableNumRunningCompactions()
public void enableNumRunningFlushes()
public void enableActualDelayedWriteRate()
public void enableIsWriteStopped()
public void enableBlockCacheCapacity()
public void enableBlockCacheUsage()
public void enableBlockCachePinnedUsage()
public void enableNumFilesAtLevel()
public void setColumnFamilyAsVariable(boolean columnFamilyAsVariable)
public Collection<RocksDBProperty> getProperties()
public Collection<org.rocksdb.TickerType> getMonitorTickerTypes()
public boolean isEnabled()
RocksDBNativeMetricMonitor
} is enabled if any property or ticker type is set.public boolean isStatisticsEnabled()
public boolean isColumnFamilyAsVariable()
RocksDBNativeMetricMonitor
} Whether to expose the column family as a variable..Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.