Skip to content

observability: appendix documents metric names the exporter has never emitted #1513

Closed

Description

@thiras

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 is gossip_peer_table_size (crates/node/src/metrics.rs), so the exported series is decdn_gossip_peer_table_size. Wrong in adr/appendix-observability.md and in four places in adr/appendix-peer-table-eviction.md. docs/runbook.md already 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 is gossip_announces_published_total, so the series is decdn_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

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

design:adrkind:docs

Type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions