Skip to main content

Crate moirai_metrics

Crate moirai_metrics 

Source
Expand description

Performance metrics and monitoring for Moirai.

The crate exposes cloneable metric handles backed by shared atomic or bounded mutex state. Metric snapshots are value copies suitable for export without retaining collector locks.

Structsยง

Counter
A monotonically increasing counter metric.
Gauge
A signed gauge metric that may increase or decrease.
Histogram
A finite-sample histogram metric.
HistogramError
Error returned when a histogram sample violates the finite-value contract.
HistogramStats
Statistics from a histogram.
Metrics
A metrics collection system.
MetricsCollector
A thread-safe metrics collector.
MetricsSnapshot
A value snapshot of all metrics at one collection point.
PrometheusExporter
A zero-sized Prometheus text exporter.