Package com.linkedin.davinci.stats
Enum Class RocksDBMemoryOtelMetricEntity
java.lang.Object
java.lang.Enum<RocksDBMemoryOtelMetricEntity>
com.linkedin.davinci.stats.RocksDBMemoryOtelMetricEntity
- All Implemented Interfaces:
ModuleMetricEntityInterface,Serializable,Comparable<RocksDBMemoryOtelMetricEntity>,Constable
public enum RocksDBMemoryOtelMetricEntity
extends Enum<RocksDBMemoryOtelMetricEntity>
implements ModuleMetricEntityInterface
OTel metric entities for RocksDB memory consumption stats.
Maps 1:1 from Tehuti async gauges in RocksDBMemoryStats to OTel ASYNC_GAUGE metrics.
OTel names use hierarchical dot-separated naming grouped by RocksDB subsystem
(memtable, compaction, flush, block_cache, sst, blob, rmd_block_cache).
Constants that correspond to a RocksDB property (queried via
RocksDBStoragePartition.getRocksDBStatValue(java.lang.String))
carry the original hyphenated property name (e.g. "rocksdb.num-immutable-mem-table")
and are discoverable via fromRocksDBProperty(String).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionfromRocksDBProperty(String propertyName) Returns the OTel metric entity for a given RocksDB property name (e.g., "rocksdb.num-immutable-mem-table").Returns the original RocksDB property name (hyphenated), ornullfor synthetic metrics.Returns the enum constant of this class with the specified name.static RocksDBMemoryOtelMetricEntity[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface com.linkedin.venice.stats.metrics.ModuleMetricEntityInterface
getMetricName
-
Enum Constant Details
-
NUM_IMMUTABLE_MEM_TABLE
-
MEM_TABLE_FLUSH_PENDING
-
CUR_SIZE_ACTIVE_MEM_TABLE
-
CUR_SIZE_ALL_MEM_TABLES
-
SIZE_ALL_MEM_TABLES
-
NUM_ENTRIES_ACTIVE_MEM_TABLE
-
NUM_ENTRIES_IMMUTABLE_MEM_TABLES
-
NUM_DELETES_ACTIVE_MEM_TABLE
-
NUM_DELETES_IMMUTABLE_MEM_TABLES
-
COMPACTION_PENDING
-
ESTIMATE_PENDING_COMPACTION_BYTES
-
NUM_RUNNING_COMPACTIONS
-
NUM_RUNNING_FLUSHES
-
BACKGROUND_ERRORS
-
ESTIMATE_NUM_KEYS
-
ESTIMATE_TABLE_READERS_MEM
-
NUM_SNAPSHOTS
-
NUM_LIVE_VERSIONS
-
ESTIMATE_LIVE_DATA_SIZE
-
MIN_LOG_NUMBER_TO_KEEP
-
ACTUAL_DELAYED_WRITE_RATE
-
TOTAL_SST_FILES_SIZE
-
LIVE_SST_FILES_SIZE
-
BLOCK_CACHE_CAPACITY
-
BLOCK_CACHE_USAGE
-
BLOCK_CACHE_PINNED_USAGE
-
NUM_BLOB_FILES
-
TOTAL_BLOB_FILE_SIZE
-
LIVE_BLOB_FILE_SIZE
-
LIVE_BLOB_FILE_GARBAGE_SIZE
-
RMD_BLOCK_CACHE_CAPACITY
-
RMD_BLOCK_CACHE_USAGE
-
RMD_BLOCK_CACHE_PINNED_USAGE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getRocksDBProperty
Returns the original RocksDB property name (hyphenated), ornullfor synthetic metrics. -
getMetricEntity
- Specified by:
getMetricEntityin interfaceModuleMetricEntityInterface
-
fromRocksDBProperty
Returns the OTel metric entity for a given RocksDB property name (e.g., "rocksdb.num-immutable-mem-table").- Throws:
IllegalArgumentException- if the property name is not recognized
-