Repository navigation
docs: ADR 020 — observability and metrics standard - #192
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces ADR 019 and ADR 020, which formalize the node onboarding process and observability standards for the network. ADR 019 defines a five-phase sequential flow for node operators to transition from server provisioning to active delivery, while ADR 020 establishes a canonical Prometheus metric registry, naming conventions, and a structured health endpoint. The feedback focuses on maintaining consistency with these new standards, specifically by using canonical metric names in the onboarding documentation and aligning the health endpoint JSON keys with the defined metric registry.
|
Addressing the cross-ADR consistency note from the review: The informal |
Consolidates metrics scattered across ADRs 001, 005, 011, 015 and architecture.md into a single canonical registry with: - decdn_ prefix + _total/unit-suffix naming convention - 35 metrics across 8 subsystems split into mandatory (M) and recommended (R) tiers - Recommended alert thresholds for the 7 slash-safety metrics - /health JSON endpoint with ready/degraded/not_ready semantics - Cross-reference table mapping all prior informal metric names to their canonical decdn_ replacements Updates architecture.md Observability section to reference ADR 020 and remove the now-superseded inline metric list. Addresses the observability gap identified in issue #190 (item 6). Co-authored-by: Copilot <[email protected]>
- Add §2.9 Node/Process Metrics with decdn_node_uptime_seconds (Gauge/R) - Align /health JSON keys with canonical metric names: peer_count → peer_table_size, uptime_seconds → node_uptime_seconds - Add JSON key → Prometheus metric mapping table below /health example - This resolves the inconsistency flagged between health endpoint fields and the canonical metric registry Co-authored-by: Copilot <[email protected]>
61b29ca to
85ba3c1
Compare
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Summary
Adds ADR 020, the canonical Prometheus metric registry for all deCDN nodes.
Background
Issue #190 identified that metrics are scattered across ADRs 001, 005, 011, 015 and
architecture.mdwith no consistent naming, no mandatory/optional split, and no alert thresholds. Operators running PoC nodes cannot build monitoring without hunting across 8 documents.What's in this ADR
Naming convention:
decdn_prefix, snake_case,_totalsuffix for counters, unit suffixes (_seconds,_bytes) for gauges/histograms.35 metrics across 8 subsystems, split into mandatory (M) and recommended (R):
Alert thresholds for all 7 slash-safety metrics (Warning/Critical + recommended action).
/healthendpoint — JSON withready/degraded/not_readystatus, peer count, channel balances, blacklist sync state. HTTP 200 / 503.Cross-reference table mapping all prior informal metric names (from ADRs 001, 005, 011, 015, architecture.md) to their canonical
decdn_replacements — no semantic changes, naming only.architecture.md changes
Replaces the inline metric list in
§ Observabilitywith a short summary pointing at ADR 020 as the authoritative source.Addresses
Issue #190, item 6 (Observability & metrics standard).