Skip to main content

DbxMetrics

Struct DbxMetrics 

Source
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: Histogram

Implementations§

Source§

impl DbxMetrics

Source

pub fn new() -> Self

Source

pub fn inc_inserts(&self)

Atomically increment a counter.

Source

pub fn inc_gets(&self)

Source

pub fn inc_deletes(&self)

Source

pub fn inc_sql_queries(&self)

Source

pub fn inc_flush(&self)

Source

pub fn inc_delta_hit(&self)

Source

pub fn inc_delta_miss(&self)

Source

pub fn inc_cache_hit(&self)

Source

pub fn inc_cache_miss(&self)

Source

pub fn inc_wos_hit(&self)

Source

pub fn inc_wos_miss(&self)

Source

pub fn inc_scatter_write(&self)

Source

pub fn inc_scatter_read(&self)

Source

pub fn inc_partition_prune_hit(&self)

Source

pub fn inc_wal_append(&self)

Source

pub fn inc_wal_compaction(&self)

Source

pub fn snapshot(&self) -> MetricsSnapshot

Create a non-atomic snapshot for reporting/display.

Source

pub fn reset(&self)

Reset all counters and histograms.

Trait Implementations§

Source§

impl Default for DbxMetrics

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T, U> Upcast<T> for U
where T: UpcastFrom<U>,

Source§

fn upcast(self) -> T

Source§

impl<T, B> UpcastFrom<Counter<T, B>> for T

Source§

fn upcast_from(value: Counter<T, B>) -> T

Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,