pub struct Metrics {Show 19 fields
pub bytes_sent: Counter,
pub bytes_recv: Counter,
pub send_packets_sent: Counter,
pub send_packets_recv: Counter,
pub send_packets_dropped: Counter,
pub disco_packets_sent: Counter,
pub disco_packets_recv: Counter,
pub disco_packets_dropped: Counter,
pub other_packets_sent: Counter,
pub other_packets_recv: Counter,
pub other_packets_dropped: Counter,
pub got_ping: Counter,
pub sent_pong: Counter,
pub unknown_frames: Counter,
pub bytes_rx_ratelimited_total: Counter,
pub conns_rx_ratelimited_total: Counter,
pub accepts: Counter,
pub disconnects: Counter,
pub unique_client_keys: Counter,
}server only.Expand description
Metrics tracked for the relay server
Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
bytes_recv: CounterBytes received from a FrameType::SendPacket
send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
other_packets_sent: CounterPackets of other FrameTypes sent
other_packets_recv: CounterPackets of other FrameTypes received
other_packets_dropped: CounterPackets of other FrameTypes dropped
got_ping: CounterNumber of FrameType::Pings received
sent_pong: CounterNumber of FrameType::Pongs sent
unknown_frames: CounterNumber of FrameType::Unknown received
bytes_rx_ratelimited_total: CounterNumber of bytes received from client connection which have been rate-limited.
conns_rx_ratelimited_total: CounterNumber of client connections which have had any frames rate-limited.
accepts: CounterNumber of times this server has accepted a connection.
disconnects: CounterNumber of connections we have removed because of an error
unique_client_keys: CounterNumber of unique client keys per day
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Metrics
impl RefUnwindSafe for Metrics
impl Send for Metrics
impl Sync for Metrics
impl Unpin for Metrics
impl UnwindSafe for Metrics
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
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> IntoIterable for Twhere
T: Iterable,
impl<T> IntoIterable for Twhere
T: Iterable,
Source§fn as_iterable(&self) -> &dyn Iterable
fn as_iterable(&self) -> &dyn Iterable
self as dyn Iterable