pub struct MetricEntry {Show 20 fields
pub total_received: u64,
pub total_completed: u64,
pub total_process_errors: u64,
pub total_output_errors: u64,
pub total_filtered: u64,
pub streams_started: u64,
pub streams_completed: u64,
pub duplicates_rejected: u64,
pub stale_entries_removed: u64,
pub in_flight: usize,
pub throughput_per_sec: f64,
pub cpu_usage_percent: Option<f32>,
pub memory_used_bytes: Option<u64>,
pub memory_total_bytes: Option<u64>,
pub input_bytes: u64,
pub output_bytes: u64,
pub bytes_per_sec: f64,
pub latency_avg_ms: f64,
pub latency_min_ms: f64,
pub latency_max_ms: f64,
}Expand description
MetricEntry is the uniform struct utilized within metrics modules of fiddler.
let content = "This is a message being processed";
let metric = MetricEntry::default();Fields§
§total_received: u64total_received- Total messages received from input
total_completed: u64total_completed- Messages successfully processed through all outputs
total_process_errors: u64total_process_errors- Messages that encountered processing errors
total_output_errors: u64total_output_errors- Messages that encountered output errors
total_filtered: u64total_filtered- Messages intentionally filtered/dropped by processors
streams_started: u64streams_started- Number of streams started
streams_completed: u64streams_completed- Number of streams completed
duplicates_rejected: u64duplicates_rejected- Duplicate messages rejected
stale_entries_removed: u64stale_entries_removed- Stale entries cleaned up
in_flight: usizein_flight- Current number of messages being processed
throughput_per_sec: f64throughput_per_sec- Current throughput in messages per second
cpu_usage_percent: Option<f32>cpu_usage_percent- System CPU usage percentage (0-100), None if not collected
memory_used_bytes: Option<u64>memory_used_bytes- System memory used in bytes, None if not collected
memory_total_bytes: Option<u64>memory_total_bytes- System total memory in bytes, None if not collected
input_bytes: u64input_bytes- Total bytes received from input
output_bytes: u64output_bytes- Total bytes written to output
bytes_per_sec: f64bytes_per_sec- Current throughput in bytes per second (based on output_bytes)
latency_avg_ms: f64latency_avg_ms- Average message processing latency in milliseconds
latency_min_ms: f64latency_min_ms- Minimum message processing latency in milliseconds
latency_max_ms: f64latency_max_ms- Maximum message processing latency in milliseconds
Trait Implementations§
Source§impl Clone for MetricEntry
impl Clone for MetricEntry
Source§fn clone(&self) -> MetricEntry
fn clone(&self) -> MetricEntry
Returns a duplicate of the value. Read more
1.0.0 · 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 MetricEntry
impl Debug for MetricEntry
Source§impl Default for MetricEntry
impl Default for MetricEntry
Source§fn default() -> MetricEntry
fn default() -> MetricEntry
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MetricEntry
impl<'de> Deserialize<'de> for MetricEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MetricEntry
impl PartialEq for MetricEntry
Source§impl Serialize for MetricEntry
impl Serialize for MetricEntry
impl StructuralPartialEq for MetricEntry
Auto Trait Implementations§
impl Freeze for MetricEntry
impl RefUnwindSafe for MetricEntry
impl Send for MetricEntry
impl Sync for MetricEntry
impl Unpin for MetricEntry
impl UnwindSafe for MetricEntry
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,
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