Metrics

Struct Metrics 

Source
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,
}
Available on crate feature server only.
Expand description

Metrics tracked for the relay server

Fields§

§bytes_sent: Counter

Bytes sent from a FrameType::SendPacket

§bytes_recv: Counter

Bytes received from a FrameType::SendPacket

§send_packets_sent: Counter

FrameType::SendPacket sent, that are not disco messages

§send_packets_recv: Counter

FrameType::SendPacket received, that are not disco messages

§send_packets_dropped: Counter

FrameType::SendPacket dropped, that are not disco messages

§disco_packets_sent: Counter

FrameType::SendPacket sent that are disco messages

§disco_packets_recv: Counter

FrameType::SendPacket received that are disco messages

§disco_packets_dropped: Counter

FrameType::SendPacket dropped that are disco messages

§other_packets_sent: Counter

Packets of other FrameTypes sent

§other_packets_recv: Counter

Packets of other FrameTypes received

§other_packets_dropped: Counter

Packets of other FrameTypes dropped

§got_ping: Counter

Number of FrameType::Pings received

§sent_pong: Counter

Number of FrameType::Pongs sent

§unknown_frames: Counter

Number of FrameType::Unknown received

§bytes_rx_ratelimited_total: Counter

Number of bytes received from client connection which have been rate-limited.

§conns_rx_ratelimited_total: Counter

Number of client connections which have had any frames rate-limited.

§accepts: Counter

Number of times this server has accepted a connection.

§disconnects: Counter

Number of connections we have removed because of an error

§unique_client_keys: Counter

Number of unique client keys per day

Trait Implementations§

Source§

impl Debug for Metrics

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Metrics

Source§

fn default() -> Metrics

Returns the “default value” for a type. Read more
Source§

impl Iterable for Metrics

Source§

fn field_count(&self) -> usize

Returns the number of fields in the struct.
Source§

fn field_ref(&self, n: usize) -> Option<MetricItem<'_>>

Returns the field name and dyn reference to the field.
Source§

impl MetricsGroup for Metrics

Source§

fn name(&self) -> &'static str

Returns the name of this metrics group.
Source§

fn iter(&self) -> FieldIter<'_>

Returns an iterator over all metric items with their values and helps.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

Source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

Source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

Source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoIterable for T
where T: Iterable,

Source§

fn as_iterable(&self) -> &dyn Iterable

Returns self as dyn Iterable
Source§

fn field_iter(&self) -> FieldIter<'_>

Returns an iterator over the fields of the struct.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more