Expand description
Metrics for ash-lock.
MOCK: the spec calls for exporting these counters through an ash-telemetry
crate, which does not yet exist. This module provides the same
AtomicU64-backed counters with a stable API so that, once ash-telemetry
lands, the export sink can be swapped in without touching call sites.
The counter names mirror the spec:
ash_lock_acquisitions_totalash_lock_contention_events_totalash_lock_renewal_failures_total
Structs§
- Snapshot
- A point-in-time snapshot of every exported counter. Useful in tests and for
the eventual
ash-telemetryscrape endpoint.
Statics§
- ACQUISITIONS_
TOTAL - Number of successful lock acquisitions.
- CONTENTION_
EVENTS_ TOTAL - Number of times an acquire had to block/retry due to contention.
- RENEWAL_
FAILURES_ TOTAL - Number of watchdog renewal failures.
Functions§
- snapshot
- Read all counters atomically enough for observability purposes.