pub struct ServerMetricsResponse {Show 14 fields
pub throughput_tok_per_sec: f64,
pub latency_p50_ms: f64,
pub latency_p95_ms: f64,
pub latency_p99_ms: f64,
pub gpu_memory_used_bytes: u64,
pub gpu_memory_total_bytes: u64,
pub gpu_utilization_percent: u32,
pub cuda_path_active: bool,
pub batch_size: usize,
pub queue_depth: usize,
pub total_tokens: u64,
pub total_requests: u64,
pub uptime_secs: u64,
pub model_name: String,
}Expand description
Server metrics response for TUI monitoring (PARITY-107) Used by realizar-monitor to display real-time server status
Fields§
§throughput_tok_per_sec: f64Current throughput in tokens per second
latency_p50_ms: f64P50 (median) latency in milliseconds
latency_p95_ms: f64P95 latency in milliseconds
latency_p99_ms: f64P99 latency in milliseconds
gpu_memory_used_bytes: u64GPU memory currently used in bytes
gpu_memory_total_bytes: u64Total GPU memory available in bytes
gpu_utilization_percent: u32GPU utilization as percentage (0-100)
cuda_path_active: boolWhether CUDA path is active
batch_size: usizeCurrent batch size
queue_depth: usizeCurrent queue depth
total_tokens: u64Total tokens generated since start
total_requests: u64Total requests processed since start
uptime_secs: u64Server uptime in seconds
model_name: StringModel name being served
Trait Implementations§
Source§impl Clone for ServerMetricsResponse
impl Clone for ServerMetricsResponse
Source§fn clone(&self) -> ServerMetricsResponse
fn clone(&self) -> ServerMetricsResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServerMetricsResponse
impl Debug for ServerMetricsResponse
Source§impl<'de> Deserialize<'de> for ServerMetricsResponse
impl<'de> Deserialize<'de> for ServerMetricsResponse
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ServerMetricsResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ServerMetricsResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ServerMetricsResponse
impl Serialize for ServerMetricsResponse
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Forget for ServerMetricsResponse
impl Freeze for ServerMetricsResponse
impl Move for ServerMetricsResponse
impl RefUnwindSafe for ServerMetricsResponse
impl Send for ServerMetricsResponse
impl Sync for ServerMetricsResponse
impl Unpin for ServerMetricsResponse
impl UnsafeUnpin for ServerMetricsResponse
impl UnwindSafe for ServerMetricsResponse
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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