Expand description
Metrics library for iroh
Modules§
- Traits for iterating over the fields of structs.
- service
service
Functions to start services that deal with metrics exposed by this crate. - static_
core static_core
Metrics collection in a static, process-level global metrics collector.
Macros§
- dec
static_core
Decrements the given metric by 1. - dec_by
static_core
Decrements the given metric byn
. - inc
static_core
Increments the given metric by 1. - inc_by
static_core
Increments the given metric byn
. - set
static_core
Sets the given metric ton
.
Structs§
- OpenMetrics
Counter
to measure discrete events. - OpenMetrics
Gauge
. - A metric item with its current value.
- A registry for
MetricsGroup
.
Enums§
- Potential errors from this library.
- The types of metrics supported by this crate.
- The value of an individual metric item.
Traits§
- Trait for metric items.
- Trait for structs containing metric items.
- Trait for a set of structs implementing
MetricsGroup
. - Helper trait to abstract over different ways to access metrics.
Functions§
- Writes
# EOF\n
towriter
. - Parses Prometheus metrics from a string.
Derive Macros§
- Derives
MetricsGroup
andIterable
. - Derives
MetricsGroupSet
for a struct.