Metrics

Struct Metrics 

Source
pub struct Metrics {
Show 58 fields pub memory_insert: BoxedCounter, pub memory_replace: BoxedCounter, pub memory_hit: BoxedCounter, pub memory_miss: BoxedCounter, pub memory_remove: BoxedCounter, pub memory_evict: BoxedCounter, pub memory_reinsert: BoxedCounter, pub memory_release: BoxedCounter, pub memory_queue: BoxedCounter, pub memory_fetch: BoxedCounter, pub memory_usage: BoxedGauge, pub memory_entries: BoxedGauge, pub storage_enqueue: BoxedCounter, pub storage_hit: BoxedCounter, pub storage_miss: BoxedCounter, pub storage_throttled: BoxedCounter, pub storage_delete: BoxedCounter, pub storage_error: BoxedCounter, pub storage_enqueue_duration: BoxedHistogram, pub storage_hit_duration: BoxedHistogram, pub storage_miss_duration: BoxedHistogram, pub storage_throttled_duration: BoxedHistogram, pub storage_delete_duration: BoxedHistogram, pub storage_queue_rotate: BoxedCounter, pub storage_queue_rotate_duration: BoxedHistogram, pub storage_queue_buffer_overflow: BoxedCounter, pub storage_queue_channel_overflow: BoxedCounter, pub storage_disk_write: BoxedCounter, pub storage_disk_read: BoxedCounter, pub storage_disk_flush: BoxedCounter, pub storage_disk_write_bytes: BoxedCounter, pub storage_disk_read_bytes: BoxedCounter, pub storage_disk_write_duration: BoxedHistogram, pub storage_disk_read_duration: BoxedHistogram, pub storage_disk_flush_duration: BoxedHistogram, pub storage_block_engine_block_clean: BoxedGauge, pub storage_block_engine_block_writing: BoxedGauge, pub storage_block_engine_block_evictable: BoxedGauge, pub storage_block_engine_block_reclaiming: BoxedGauge, pub storage_block_engine_block_size_bytes: BoxedGauge, pub storage_entry_serialize_duration: BoxedHistogram, pub storage_entry_deserialize_duration: BoxedHistogram, pub storage_block_engine_indexer_conflict: BoxedCounter, pub storage_block_engine_enqueue_skip: BoxedCounter, pub storage_block_engine_buffer_efficiency: BoxedHistogram, pub storage_block_engine_recover_duration: BoxedHistogram, pub hybrid_insert: BoxedCounter, pub hybrid_hit: BoxedCounter, pub hybrid_miss: BoxedCounter, pub hybrid_throttled: BoxedCounter, pub hybrid_remove: BoxedCounter, pub hybrid_error: BoxedCounter, pub hybrid_insert_duration: BoxedHistogram, pub hybrid_hit_duration: BoxedHistogram, pub hybrid_miss_duration: BoxedHistogram, pub hybrid_throttled_duration: BoxedHistogram, pub hybrid_remove_duration: BoxedHistogram, pub hybrid_error_duration: BoxedHistogram,
}

Fields§

§memory_insert: BoxedCounter§memory_replace: BoxedCounter§memory_hit: BoxedCounter§memory_miss: BoxedCounter§memory_remove: BoxedCounter§memory_evict: BoxedCounter§memory_reinsert: BoxedCounter§memory_release: BoxedCounter§memory_queue: BoxedCounter§memory_fetch: BoxedCounter§memory_usage: BoxedGauge§memory_entries: BoxedGauge§storage_enqueue: BoxedCounter§storage_hit: BoxedCounter§storage_miss: BoxedCounter§storage_throttled: BoxedCounter§storage_delete: BoxedCounter§storage_error: BoxedCounter§storage_enqueue_duration: BoxedHistogram§storage_hit_duration: BoxedHistogram§storage_miss_duration: BoxedHistogram§storage_throttled_duration: BoxedHistogram§storage_delete_duration: BoxedHistogram§storage_queue_rotate: BoxedCounter§storage_queue_rotate_duration: BoxedHistogram§storage_queue_buffer_overflow: BoxedCounter§storage_queue_channel_overflow: BoxedCounter§storage_disk_write: BoxedCounter§storage_disk_read: BoxedCounter§storage_disk_flush: BoxedCounter§storage_disk_write_bytes: BoxedCounter§storage_disk_read_bytes: BoxedCounter§storage_disk_write_duration: BoxedHistogram§storage_disk_read_duration: BoxedHistogram§storage_disk_flush_duration: BoxedHistogram§storage_block_engine_block_clean: BoxedGauge§storage_block_engine_block_writing: BoxedGauge§storage_block_engine_block_evictable: BoxedGauge§storage_block_engine_block_reclaiming: BoxedGauge§storage_block_engine_block_size_bytes: BoxedGauge§storage_entry_serialize_duration: BoxedHistogram§storage_entry_deserialize_duration: BoxedHistogram§storage_block_engine_indexer_conflict: BoxedCounter§storage_block_engine_enqueue_skip: BoxedCounter§storage_block_engine_buffer_efficiency: BoxedHistogram§storage_block_engine_recover_duration: BoxedHistogram§hybrid_insert: BoxedCounter§hybrid_hit: BoxedCounter§hybrid_miss: BoxedCounter§hybrid_throttled: BoxedCounter§hybrid_remove: BoxedCounter§hybrid_error: BoxedCounter§hybrid_insert_duration: BoxedHistogram§hybrid_hit_duration: BoxedHistogram§hybrid_miss_duration: BoxedHistogram§hybrid_throttled_duration: BoxedHistogram§hybrid_remove_duration: BoxedHistogram§hybrid_error_duration: BoxedHistogram

Implementations§

Source§

impl Metrics

Source

pub fn new(name: impl Into<Cow<'static, str>>, registry: &BoxedRegistry) -> Self

Create a new metric with the given name.

Trait Implementations§

Source§

impl Debug for Metrics

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. 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, 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> Scope for T

Source§

fn with<F, R>(self, f: F) -> R
where Self: Sized, F: FnOnce(Self) -> R,

Scoped with ownership.
Source§

fn with_ref<F, R>(&self, f: F) -> R
where F: FnOnce(&Self) -> R,

Scoped with reference.
Source§

fn with_mut<F, R>(&mut self, f: F) -> R
where F: FnOnce(&mut Self) -> R,

Scoped with mutable reference.
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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> Value for T
where T: Send + Sync + 'static,