pub struct BlockstoreRocksDbColumnFamilyMetrics {Show 16 fields
pub total_sst_files_size: i64,
pub size_all_mem_tables: i64,
pub num_snapshots: i64,
pub oldest_snapshot_time: i64,
pub actual_delayed_write_rate: i64,
pub is_write_stopped: i64,
pub block_cache_capacity: i64,
pub block_cache_usage: i64,
pub block_cache_pinned_usage: i64,
pub estimate_table_readers_mem: i64,
pub mem_table_flush_pending: i64,
pub compaction_pending: i64,
pub num_running_compactions: i64,
pub num_running_flushes: i64,
pub estimate_oldest_key_time: i64,
pub background_errors: i64,
}
Expand description
A metrics struct that exposes RocksDB’s column family properties.
Here we only expose a subset of all the internal properties which are relevant to the ledger store performance.
The list of completed RocksDB internal properties can be found here.
Fields§
§total_sst_files_size: i64
§size_all_mem_tables: i64
§num_snapshots: i64
§oldest_snapshot_time: i64
§actual_delayed_write_rate: i64
§is_write_stopped: i64
§block_cache_capacity: i64
§block_cache_usage: i64
§block_cache_pinned_usage: i64
§estimate_table_readers_mem: i64
§mem_table_flush_pending: i64
§compaction_pending: i64
§num_running_compactions: i64
§num_running_flushes: i64
§estimate_oldest_key_time: i64
§background_errors: i64
Implementations§
source§impl BlockstoreRocksDbColumnFamilyMetrics
impl BlockstoreRocksDbColumnFamilyMetrics
sourcepub fn report_metrics(
&self,
cf_name: &'static str,
column_options: &LedgerColumnOptions
)
pub fn report_metrics( &self, cf_name: &'static str, column_options: &LedgerColumnOptions )
Report metrics with the specified metric name and column family tag.
The metric name and the column family tag is embedded in the parameter
metric_name_and_cf_tag
with the following format.
For example, “blockstore_rocksdb_cfs,cf_name=shred_data”.
Trait Implementations§
source§impl Default for BlockstoreRocksDbColumnFamilyMetrics
impl Default for BlockstoreRocksDbColumnFamilyMetrics
source§fn default() -> BlockstoreRocksDbColumnFamilyMetrics
fn default() -> BlockstoreRocksDbColumnFamilyMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for BlockstoreRocksDbColumnFamilyMetrics
impl Send for BlockstoreRocksDbColumnFamilyMetrics
impl Sync for BlockstoreRocksDbColumnFamilyMetrics
impl Unpin for BlockstoreRocksDbColumnFamilyMetrics
impl UnwindSafe for BlockstoreRocksDbColumnFamilyMetrics
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request