Expand description
Metrics library for iroh
Modules§
- Functions to encode metrics into the OpenMetrics text format.
- Traits for iterating over the fields of structs.
- service
serviceFunctions to start services that deal with metrics exposed by this crate. - static_
core static_coreMetrics collection in a static, process-level global metrics collector.
Macros§
- dec
static_coreDecrements the given metric by 1. - dec_by
static_coreDecrements the given metric byn. - inc
static_coreIncrements the given metric by 1. - inc_by
static_coreIncrements the given metric byn. - set
static_coreSets the given metric ton.
Structs§
- OpenMetrics
Counterto measure discrete events. - OpenMetrics
Gauge. - OpenMetrics
Histogramto track distributions of values. - 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§
- Parses Prometheus metrics from a string.
Type Aliases§
- A cloneable
Registryin a read-write lock.
Derive Macros§
- Derives
MetricsGroupandIterable. - Derives
MetricsGroupSetfor a struct.