pub struct MetricsRegistry {Show 40 fields
pub connections_total: CachePadded<AtomicU64>,
pub connections_active: CachePadded<AtomicI64>,
pub connections_rejected: CachePadded<AtomicU64>,
pub sessions_total: CachePadded<AtomicU64>,
pub sessions_active: CachePadded<AtomicI64>,
pub session_duration: Histogram,
pub mounts_active: CachePadded<AtomicI64>,
pub frames_accepted: CachePadded<AtomicU64>,
pub frames_dropped: CachePadded<AtomicU64>,
pub rtp_packets_sent: CachePadded<AtomicU64>,
pub rtp_octets_sent: CachePadded<AtomicU64>,
pub rtp_packets_received: CachePadded<AtomicU64>,
pub rtcp_loss_ratio: Histogram,
pub rtcp_jitter_ms: Histogram,
pub rtcp_rtt_ms: Histogram,
pub errors_by_code: [CachePadded<AtomicU64>; 12],
pub proxy_reconnects: CachePadded<AtomicU64>,
pub proxy_failovers: CachePadded<AtomicU64>,
pub proxy_configured: CachePadded<AtomicI64>,
pub proxy_streaming: CachePadded<AtomicI64>,
pub client_sessions_total: CachePadded<AtomicU64>,
pub client_sessions_active: CachePadded<AtomicI64>,
pub client_reconnect_attempts: CachePadded<AtomicU64>,
pub client_keep_alive_failures: CachePadded<AtomicU64>,
pub client_fallbacks: CachePadded<AtomicU64>,
pub rtmp_connections_total: CachePadded<AtomicU64>,
pub rtmp_publishers_active: CachePadded<AtomicI64>,
pub rtmp_players_active: CachePadded<AtomicI64>,
pub srt_connections_total: CachePadded<AtomicU64>,
pub srt_streams_active: CachePadded<AtomicI64>,
pub srt_rtt_us: CachePadded<AtomicU64>,
pub srt_loss_packets: CachePadded<AtomicU64>,
pub srt_skipped_packets: CachePadded<AtomicU64>,
pub srt_handshake_failures: CachePadded<AtomicU64>,
pub webrtc_sessions_total: CachePadded<AtomicU64>,
pub webrtc_sessions_active: CachePadded<AtomicI64>,
pub http_requests_total: CachePadded<AtomicU64>,
pub hls_segments_served: CachePadded<AtomicU64>,
pub dash_segments_served: CachePadded<AtomicU64>,
pub flv_streams_active: CachePadded<AtomicI64>,
}Expand description
Metrics registry containing all server-level counters and histograms.
All fields use atomic types for lock-free access. Recording is designed to have minimal impact on the hot path.
Fields§
§connections_total: CachePadded<AtomicU64>§connections_active: CachePadded<AtomicI64>§connections_rejected: CachePadded<AtomicU64>§sessions_total: CachePadded<AtomicU64>§sessions_active: CachePadded<AtomicI64>§session_duration: Histogram§mounts_active: CachePadded<AtomicI64>§frames_accepted: CachePadded<AtomicU64>§frames_dropped: CachePadded<AtomicU64>§rtp_packets_sent: CachePadded<AtomicU64>§rtp_octets_sent: CachePadded<AtomicU64>§rtp_packets_received: CachePadded<AtomicU64>§rtcp_loss_ratio: Histogram§rtcp_jitter_ms: Histogram§rtcp_rtt_ms: Histogram§errors_by_code: [CachePadded<AtomicU64>; 12]§proxy_reconnects: CachePadded<AtomicU64>§proxy_failovers: CachePadded<AtomicU64>§proxy_configured: CachePadded<AtomicI64>Configured proxy mounts.
proxy_streaming: CachePadded<AtomicI64>Proxy mounts currently streaming.
client_sessions_total: CachePadded<AtomicU64>§client_sessions_active: CachePadded<AtomicI64>§client_reconnect_attempts: CachePadded<AtomicU64>§client_keep_alive_failures: CachePadded<AtomicU64>§client_fallbacks: CachePadded<AtomicU64>§rtmp_connections_total: CachePadded<AtomicU64>§rtmp_publishers_active: CachePadded<AtomicI64>§rtmp_players_active: CachePadded<AtomicI64>§srt_connections_total: CachePadded<AtomicU64>§srt_streams_active: CachePadded<AtomicI64>§srt_rtt_us: CachePadded<AtomicU64>Last measured SRT round-trip time, microseconds.
srt_loss_packets: CachePadded<AtomicU64>Packets declared lost by NAK/TSBPD gap detection.
srt_skipped_packets: CachePadded<AtomicU64>Packets skipped by TLPKTDROP.
srt_handshake_failures: CachePadded<AtomicU64>Rejected SRT handshakes (any reason).
webrtc_sessions_total: CachePadded<AtomicU64>§webrtc_sessions_active: CachePadded<AtomicI64>§http_requests_total: CachePadded<AtomicU64>§hls_segments_served: CachePadded<AtomicU64>§dash_segments_served: CachePadded<AtomicU64>§flv_streams_active: CachePadded<AtomicI64>Implementations§
Source§impl MetricsRegistry
impl MetricsRegistry
Sourcepub fn record_error(&self, code: ErrorCode)
pub fn record_error(&self, code: ErrorCode)
Record an error code into the errors_by_code counter.
Trait Implementations§
Source§impl Debug for MetricsRegistry
impl Debug for MetricsRegistry
Auto Trait Implementations§
impl !Freeze for MetricsRegistry
impl Forget for MetricsRegistry
impl Move for MetricsRegistry
impl RefUnwindSafe for MetricsRegistry
impl Send for MetricsRegistry
impl Sync for MetricsRegistry
impl Unpin for MetricsRegistry
impl UnsafeUnpin for MetricsRegistrywhere
Align8<u64>: UnsafeUnpin,
Align8<i64>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<Atomic<u64>>: UnsafeUnpin,
PhantomData<f64>: UnsafeUnpin,
impl UnwindSafe for MetricsRegistry
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