Problem
/api/status currently reports requests_total, bytes_served, and read_errors as zero even after clients read from the virtual disk. These fields are defaults, not live nbdkit/plugin metrics.
This prevents diagnosing slow directory enumeration, file downloads, cache behavior, and read failures.
Plan
- Add thread-safe counters in the nbdkit plugin for requests, bytes, and read errors.
- Expose counters through the service status model.
- Define counter reset and generation semantics.
- Add API regression tests proving counters reflect reads and errors.
- Use metrics during SBC performance verification.
Problem
/api/statuscurrently reportsrequests_total,bytes_served, andread_errorsas zero even after clients read from the virtual disk. These fields are defaults, not live nbdkit/plugin metrics.This prevents diagnosing slow directory enumeration, file downloads, cache behavior, and read failures.
Plan