iroh_dns_server::metrics

Struct Metrics

Source
pub struct Metrics {
Show 16 fields pub pkarr_publish_update: Counter, pub pkarr_publish_noop: Counter, pub dns_requests: Counter, pub dns_requests_udp: Counter, pub dns_requests_https: Counter, pub dns_lookup_success: Counter, pub dns_lookup_notfound: Counter, pub dns_lookup_error: Counter, pub http_requests: Counter, pub http_requests_success: Counter, pub http_requests_error: Counter, pub http_requests_duration_ms: Counter, pub store_packets_inserted: Counter, pub store_packets_removed: Counter, pub store_packets_updated: Counter, pub store_packets_expired: Counter,
}
Expand description

Metrics for iroh-dns-server

Fields§

§pkarr_publish_update: Counter

Number of pkarr relay puts that updated the state

§pkarr_publish_noop: Counter

Number of pkarr relay puts that did not update the state

§dns_requests: Counter

DNS requests (total)

§dns_requests_udp: Counter

DNS requests via UDP

§dns_requests_https: Counter

DNS requests via HTTPS (DoH)

§dns_lookup_success: Counter

DNS lookup responses with at least one answer

§dns_lookup_notfound: Counter

DNS lookup responses with no answers

§dns_lookup_error: Counter

DNS lookup responses which failed

§http_requests: Counter

Number of HTTP requests

§http_requests_success: Counter

Number of HTTP requests with a 2xx status code

§http_requests_error: Counter

Number of HTTP requests with a non-2xx status code

§http_requests_duration_ms: Counter

Total duration of all HTTP requests

§store_packets_inserted: Counter

Signed packets inserted into the store

§store_packets_removed: Counter

Signed packets removed from the store

§store_packets_updated: Counter

Number of updates to existing packets

§store_packets_expired: Counter

Number of expired packets

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.
§

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
§

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

§

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

§

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

§

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
§

impl<T> CompatExt for T

§

fn compat(self) -> Compat<T>

Applies the [Compat] adapter by value. Read more
§

fn compat_ref(&self) -> Compat<&T>

Applies the [Compat] adapter by shared reference. Read more
§

fn compat_mut(&mut self) -> Compat<&mut T>

Applies the [Compat] adapter by mutable reference. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

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

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

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.

§

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

§

fn as_iterable(&self) -> &dyn Iterable

Returns self as dyn Iterable
§

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

Returns an iterator over the fields of the struct.
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.
§

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

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

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
§

fn with_current_subscriber(self) -> WithDispatch<Self>

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

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T