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
. - Metric
Item - A metric item with its current value.
- Registry
- A registry for
MetricsGroup
.
Enums§
- Error
- Potential errors from this library.
- Metric
Type - The types of metrics supported by this crate.
- Metric
Value - The value of an individual metric item.
Traits§
- Metric
- Trait for metric items.
- Metrics
Group - Trait for structs containing metric items.
- Metrics
Group Set - Trait for a set of structs implementing
MetricsGroup
. - Metrics
Source - Helper trait to abstract over different ways to access metrics.
Functions§
- parse_
prometheus_ metrics - Parses Prometheus metrics from a string.
Derive Macros§
- Metrics
Group - Derives
MetricsGroup
andIterable
. - Metrics
Group Set - Derives
MetricsGroupSet
for a struct.