pub struct Metrics {
pub dp_rank: u32,
pub active_blocks: u64,
pub total_blocks: u64,
pub cache_usage: f64,
pub running_requests: u64,
pub waiting_requests: u64,
pub preemptions_total: u64,
pub sglang_cache_hit_tokens: u64,
pub sglang_cache_total_tokens: u64,
}Expand description
Rank-local scheduler and G1 metrics.
Fields§
§dp_rank: u32§active_blocks: u64§total_blocks: u64§cache_usage: f64§running_requests: u64§waiting_requests: u64§preemptions_total: u64§sglang_cache_hit_tokens: u64SGLang radix-cache tokens reused by the most recently completed pass.
Backends without an equivalent pass-local metric report zero.
sglang_cache_total_tokens: u64Total SGLang prefill tokens considered by the most recently completed pass. Backends without an equivalent pass-local metric report zero.
Trait Implementations§
impl StructuralPartialEq for Metrics
Auto Trait Implementations§
impl Freeze for Metrics
impl RefUnwindSafe for Metrics
impl Send for Metrics
impl Sync for Metrics
impl Unpin for Metrics
impl UnsafeUnpin for Metrics
impl UnwindSafe for Metrics
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