miroir/crates/miroir-proxy
jedarden a7d501dc77 feat(reshard): wire up metrics callback for reshard operations
Previously the reshard orchestrator config had a None metrics_callback,
meaning no Prometheus metrics were emitted during reshard operations.

This commit implements the metrics callback to update:
- miroir_reshard_in_progress: gauge set to 1 during active resharding, 0 when idle/complete/failed
- miroir_reshard_phase: gauge tracking current phase (0=idle, 1=shadow, 2=dual_write, 3=backfill, 4=verify, 5=swapped, 6=cleanup, 7=complete, 8=failed)
- miroir_reshard_documents_backfilled_total: counter incremented with document counts during backfill and later phases

The callback uses the public Metrics API methods (set_reshard_in_progress,
set_reshard_phase, inc_reshard_documents_backfilled) and correctly maps
ReshardPhase enum variants to their corresponding phase numbers.

Closes: bf-4wza
2026-05-26 10:04:28 -04:00
..
admin-ui/dist feat(admin-ui): add 2PC settings preview endpoint and UI integration 2026-05-25 00:03:35 -04:00
src feat(reshard): wire up metrics callback for reshard operations 2026-05-26 10:04:28 -04:00
static feat(search-ui): add embeddable modes and custom templates (P5.21.e) 2026-05-24 14:37:00 -04:00
tests feat(reshard): implement backfill phase with pagination and rehashing 2026-05-26 08:05:45 -04:00
Cargo.toml fix(cli): add --version and --help flags to miroir-proxy 2026-05-26 03:02:56 -04:00