pub struct DbxMetrics {Show 18 fields
pub inserts_total: AtomicU64,
pub gets_total: AtomicU64,
pub deletes_total: AtomicU64,
pub sql_queries_total: AtomicU64,
pub flush_total: AtomicU64,
pub delta_hits: AtomicU64,
pub delta_misses: AtomicU64,
pub cache_hits: AtomicU64,
pub cache_misses: AtomicU64,
pub wos_hits: AtomicU64,
pub wos_misses: AtomicU64,
pub scatter_writes_total: AtomicU64,
pub scatter_reads_total: AtomicU64,
pub partition_prune_hits: AtomicU64,
pub wal_appends_total: AtomicU64,
pub wal_compactions_total: AtomicU64,
pub query_latency_us: Histogram,
pub insert_latency_us: Histogram,
}Expand description
Global metrics registry for DBX.
Embedded in Database as Arc<DbxMetrics> — cloning the Arc is cheap.
Fields§
§inserts_total: AtomicU64§gets_total: AtomicU64§deletes_total: AtomicU64§sql_queries_total: AtomicU64§flush_total: AtomicU64§delta_hits: AtomicU64§delta_misses: AtomicU64§cache_hits: AtomicU64§cache_misses: AtomicU64§wos_hits: AtomicU64§wos_misses: AtomicU64§scatter_writes_total: AtomicU64§scatter_reads_total: AtomicU64§partition_prune_hits: AtomicU64§wal_appends_total: AtomicU64§wal_compactions_total: AtomicU64§query_latency_us: Histogram§insert_latency_us: HistogramImplementations§
Source§impl DbxMetrics
impl DbxMetrics
pub fn new() -> Self
Sourcepub fn inc_inserts(&self)
pub fn inc_inserts(&self)
Atomically increment a counter.
pub fn inc_gets(&self)
pub fn inc_deletes(&self)
pub fn inc_sql_queries(&self)
pub fn inc_flush(&self)
pub fn inc_delta_hit(&self)
pub fn inc_delta_miss(&self)
pub fn inc_cache_hit(&self)
pub fn inc_cache_miss(&self)
pub fn inc_wos_hit(&self)
pub fn inc_wos_miss(&self)
pub fn inc_scatter_write(&self)
pub fn inc_scatter_read(&self)
pub fn inc_partition_prune_hit(&self)
pub fn inc_wal_append(&self)
pub fn inc_wal_compaction(&self)
Sourcepub fn snapshot(&self) -> MetricsSnapshot
pub fn snapshot(&self) -> MetricsSnapshot
Create a non-atomic snapshot for reporting/display.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for DbxMetrics
impl RefUnwindSafe for DbxMetrics
impl Send for DbxMetrics
impl Sync for DbxMetrics
impl Unpin for DbxMetrics
impl UnsafeUnpin for DbxMetrics
impl UnwindSafe for DbxMetrics
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more