Repository navigation
Description
Found by the multi-agent review of #1510, which fixed the gossip half of this. adr/appendix-observability.md calls itself the authoritative canonical metric registry, but several rows name series the node does not export. #1510 corrected the ones inside its own scope (the decdn_gossip_messages_rejected_total{reason=...} family, which never existed, plus the table_full label that is only a log token). These are the ones left, all pre-existing:
Names that do not resolve to a field
decdn_peer_table_size— the struct field isgossip_peer_table_size(crates/node/src/metrics.rs), so the exported series isdecdn_gossip_peer_table_size. Wrong inadr/appendix-observability.mdand in four places inadr/appendix-peer-table-eviction.md.docs/runbook.mdalready documents the divergence, which means an operator following the ADR and an operator following the runbook build different dashboards.decdn_gossip_announces_sent_total— the field isgossip_announces_published_total, so the series isdecdn_gossip_announces_published_total.decdn_peer_table_evicted_registry_total— not implemented at all. Either mark it aspirational in the table or drop the row.
Coverage gaps in the registry
- The DHT rate-limit counters (
decdn_dht_rate_limit_rejected_{per_peer,per_ip,global}_total) appear nowhere in the appendix, even though they are a real exported family.RejectLayeris shared by the probe and DHT paths — feat(cache): opt-in remote-origin prewarm, settle two deferred decisions, clear #1504/#1508 drift #1510 corrected the enum's own doc to say so, but the appendix still only lists the probe trio. crates/node/src/dht/rate_limit.rsandcrates/node/src/handlers/probe_rate_limit.rsstill justify sibling counters with "the backend has no per-field labels". That is the exact rationale metrics: decide whether the remaining reason-splits follow probe-hold onto {reason} labels #1475 replaced —iroh-metricsdoes supportFamily<L, M>; siblings are a deliberate choice, not a limitation.
Why this keeps happening
Nothing gates ADR metric names against the exporter, in either direction — the ADR can lead the code as easily as lag it. The _total suffix makes it worse: counter fields never spell it (the encoder appends it), so a name in prose can look right and still be wrong. crates/node/src/metrics.rs has a name-pinning test that asserts every decdn_cache_*_total exports at zero on a fresh registry; the cheapest durable fix is extending that pattern to the gossip/peer-table/DHT families and, ideally, a check that every backticked decdn_* name in adr/appendix-observability.md appears in the encoder output.
Related: monitoring/ is likewise unvalidated against the exporter.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
feat(cache): opt-in remote-origin prewarm, settle two deferred decisi…
feat(node): make the insufficient-deposit refusal observable
feat(node): make the insufficient-deposit refusal observable
fix: close the three #1518 review follow-ups — pre-spend deposit floo…
docs: correct the sweep's own stale and inverted claims
docs: sweep stale not-yet-wired comments orphaned by landed work (#1572)