Crate iroh_metrics

Source
Expand description

Metrics library for iroh

Modules§

iterable
Traits for iterating over the fields of structs.
service
Functions to start services that deal with metrics exposed by this crate.
static_core
Metrics collection in a static, process-level global metrics collector.

Macros§

dec
Decrements the given metric by 1.
dec_by
Decrements the given metric by n.
inc
Increments the given metric by 1.
inc_by
Increments the given metric by n.
set
Sets the given metric to n.

Structs§

Counter
OpenMetrics Counter to measure discrete events.
Gauge
OpenMetrics Gauge.
MetricItem
A metric item with its current value.
Registry
A registry for MetricsGroup.

Enums§

Error
Potential errors from this library.
MetricType
The types of metrics supported by this crate.
MetricValue
The value of an individual metric item.

Traits§

Metric
Trait for metric items.
MetricsGroup
Trait for structs containing metric items.
MetricsGroupSet
Trait for a set of structs implementing MetricsGroup.
MetricsSource
Helper trait to abstract over different ways to access metrics.

Functions§

parse_prometheus_metrics
Parses Prometheus metrics from a string.

Derive Macros§

MetricsGroup
Derives MetricsGroup and Iterable.
MetricsGroupSet
Derives MetricsGroupSet for a struct.