- Add BUILD.bazel across tidal, tidal-net, tidal-server, tidalctl for bzlmod build - Add tidal/ crate docs (README, CHANGELOG, CONTRIBUTING, AGENTS, CLAUDE, API, ARCHITECTURE) and ai-lookup reference - Add docker standalone/cluster/deploy images, compose, and prometheus config - Harden WAL (batch format, writer, dedup, diagnostics), text syncer/collectors, and vector registry - Expand tidalctl CLI and tests; restructure WAL/visibility integration test suites - Refine tidal-net transport/client/server and tidal-server cluster/scatter-gather
14 lines
725 B
Markdown
14 lines
725 B
Markdown
# Task 02 — Metrics / Health Surface
|
|
|
|
**Goal:** expose runtime stats (uptime, WAL lag, open handles) without requiring full observability stack.
|
|
|
|
## Deliverables
|
|
- Optional HTTP endpoint (disabled by default) serving `/metrics` (Prometheus text) and `/healthz` (JSON).
|
|
- Builder flag `enable_metrics(addr)` + `with_metrics(false)` toggle for tests.
|
|
- Metrics counters tagged with `process`, `partition_id`, `build_hash` for future distributed rollouts.
|
|
|
|
## Acceptance Criteria
|
|
- Endpoint can run on the same Tokio runtime as host service (returns `Future` implementor).
|
|
- Minimal deps (hyper/tiny_http) to keep embeddable footprint light.
|
|
- Integration test hits `/metrics` and asserts counters increment when WAL appends.
|