miroir/crates/miroir-proxy
jedarden 5f9ee20eeb P7.1: Core metrics families acceptance tests
Add accessor methods for request metrics (duration, total) to enable
testing of histogram/counter metrics that require samples to appear
in Prometheus output.

Fix p7_1_core_metrics.rs test to:
- Use new accessor methods to record request metric samples
- Check for HELP/TYPE metadata in addition to data lines
- Relax histogram bucket format check to verify non-zero count

All 18 core plan §10 metrics are verified:
- Requests: duration, total, in_flight
- Node health: healthy, request_duration, errors_total
- Shards: coverage, degraded_shards_total, distribution
- Tasks: processing_age, total, registry_size
- Scatter-gather: fan_out_size, partial_responses_total, retries_total
- Rebalancer: in_progress, documents_migrated_total, duration_seconds

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-23 02:29:28 -04:00
..
src P7.1: Core metrics families acceptance tests 2026-05-23 02:29:28 -04:00
static Phase 5: Add Advanced Capabilities verification and UI static assets 2026-05-03 19:01:22 -04:00
tests P7.1: Core metrics families acceptance tests 2026-05-23 02:29:28 -04:00
Cargo.toml P5.7 §13.7: Complete atomic index alias implementation 2026-05-23 02:12:50 -04:00