Expand description
Metrics library for iroh
Modules§
- Functions to encode metrics into the OpenMetrics text format.
- Traits for iterating over the fields of structs.
- serviceserviceFunctions 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§
- decstatic_coreDecrements the given metric by 1.
- dec_bystatic_coreDecrements the given metric byn.
- incstatic_coreIncrements the given metric by 1.
- inc_bystatic_coreIncrements the given metric byn.
- setstatic_coreSets the given metric ton.
Structs§
- OpenMetricsCounterto measure discrete events.
- OpenMetricsGauge.
- OpenMetricsHistogramto track distributions of values.
- A metric item with its current value.
- A registry forMetricsGroup.
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 implementingMetricsGroup.
- Helper trait to abstract over different ways to access metrics.
Functions§
- Parses Prometheus metrics from a string.
Type Aliases§
- A cloneableRegistryin a read-write lock.
Derive Macros§
- DerivesMetricsGroupandIterable.
- DerivesMetricsGroupSetfor a struct.