#[non_exhaustive]pub struct Metrics {Show 18 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,
pub cache_zones: Gauge,
pub cache_zones_dht: Gauge,
}Expand description
Counters exposed by iroh-dns-server.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.pkarr_publish_update: CounterNumber of pkarr relay puts that updated the stored packet.
pkarr_publish_noop: CounterNumber of pkarr relay puts that did not change the stored packet.
dns_requests: CounterTotal number of DNS requests across all transports.
dns_requests_udp: CounterNumber of DNS requests received over UDP.
dns_requests_https: CounterNumber of DNS requests received over HTTPS (DoH).
dns_lookup_success: CounterNumber of DNS lookups that returned at least one answer.
dns_lookup_notfound: CounterNumber of DNS lookups that returned no answers.
dns_lookup_error: CounterNumber of DNS lookups that failed with an error.
http_requests: CounterNumber of HTTP requests served.
http_requests_success: CounterNumber of HTTP requests that returned a 2xx status code.
http_requests_error: CounterNumber of HTTP requests that returned a non-2xx status code.
http_requests_duration_ms: CounterCumulative duration of all HTTP requests, in milliseconds.
store_packets_inserted: CounterNumber of signed packets newly inserted into the store.
store_packets_removed: CounterNumber of signed packets removed from the store.
Currently always at 0 because the removal API is not used.
store_packets_updated: CounterNumber of times an existing signed packet was replaced by a newer one.
store_packets_expired: CounterNumber of signed packets removed by the eviction task.
cache_zones: GaugeCurrent number of zones in the main cache
cache_zones_dht: GaugeCurrent number of zones in the DHT cache
Trait Implementations§
Source§impl Iterable for Metrics
impl Iterable for Metrics
Source§fn metric_field_count(&self) -> usize
fn metric_field_count(&self) -> usize
Source§fn metric_field_ref(&self, n: usize) -> Option<MetricItem<'_>>
fn metric_field_ref(&self, n: usize) -> Option<MetricItem<'_>>
§fn family_field_count(&self) -> usize
fn family_field_count(&self) -> usize
Family fields in the struct.§fn family_field_ref(&self, _n: usize) -> Option<FamilyItem<'_>>
fn family_field_ref(&self, _n: usize) -> Option<FamilyItem<'_>>
Family field at the given index.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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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§impl<T> IntoIterable for Twhere
T: Iterable,
impl<T> IntoIterable for Twhere
T: Iterable,
§fn as_iterable(&self) -> &dyn Iterable
fn as_iterable(&self) -> &dyn Iterable
self as dyn Iterable