pub struct DbMetrics {Show 14 fields
pub memory_count: u64,
pub stores: u64,
pub recalls: u64,
pub avg_store_latency_us: u64,
pub avg_search_latency_us: u64,
pub buffer_pool_hits: u64,
pub buffer_pool_misses: u64,
pub buffer_pool_evictions: u64,
pub buffer_pool_pages: u64,
pub storage_bytes: u64,
pub page_count: u64,
pub vector_index_size: u64,
pub graph_nodes: u64,
pub standing_rules: u64,
}Expand description
A point-in-time snapshot of engine metrics for a /metrics exporter. Cheap to
take: counters are atomic loads and sizes are O(1) index/graph/page lookups, so
a scrape does not scan the corpus.
Fields§
§memory_count: u64Memories stored on this node.
stores: u64Lifetime store operations (writes).
recalls: u64Lifetime recall/query operations (reads).
avg_store_latency_us: u64EMA of recent store op latency, microseconds. 0 until the first store.
avg_search_latency_us: u64EMA of recent hybrid-search op latency, microseconds. 0 until the first search.
buffer_pool_hits: u64Buffer-pool page cache hits.
buffer_pool_misses: u64Buffer-pool page cache misses (disk reads).
buffer_pool_evictions: u64Buffer-pool CLOCK evictions.
buffer_pool_pages: u64Frames currently holding a page.
storage_bytes: u64On-disk data size in bytes (page_count * page size).
page_count: u64Pages in the store.
vector_index_size: u64Vectors in the HNSW index.
graph_nodes: u64Nodes in the memory graph.
standing_rules: u64Pinned standing rules (scope:always).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DbMetrics
impl RefUnwindSafe for DbMetrics
impl Send for DbMetrics
impl Sync for DbMetrics
impl Unpin for DbMetrics
impl UnsafeUnpin for DbMetrics
impl UnwindSafe for DbMetrics
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