Skip to main content

Module metrics

Module metrics 

Source
Expand description

Process-lifetime operational counters for prosperod.

ADR-0004 specifies a failed Store.append is “logged and metered”, and caliband::stream documents an unknown frame as something the caller should “log + count”. These counters meter both, plus a little surrounding signal (events appended, repos polled, active attaches), so operators aren’t blind to persistence loss, protocol drift, or attach load. They are exposed over the API via MetricsSnapshot.

Structs§

Metrics
Monotonic operational counters, incremented from the hot paths. Cheap, lock-free, and shared (behind an Arc) across the manager and its tasks.
MetricsSnapshot
A point-in-time snapshot of prosperod’s operational counters, returned by GET /api/metrics.