Skip to main content

Module metrics

Module metrics 

Source
Expand description

Observability: metrics collection and (optional) Prometheus export.

MetricsCollector is always available and dependency-free. When the metrics feature is enabled, prometheus::PrometheusExporter renders snapshots in Prometheus text format.

Re-exports§

pub use collector::MetricsCollector;
pub use collector::MetricsSnapshot;

Modules§

collector
Lightweight, dependency-free metrics collection.
prometheusmetrics
Prometheus exposition for collected metrics.