Repository navigation
feat(monitoring): follow decdn's refusal classes and recovery-step metrics - #104
Conversation
…trics decdn/decdn#2354 renames the node's reactive top-up counters to recovery step counters, adds a pool-closing serve refusal counter, and drops the post-eviction probe metric. The delivery and node dashboards follow. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
🟢 Approval recommended
Every changed series was verified against upstream's exporter and the subtraction list exactly mirrors upstream's INBOUND_FAILURE_REASONS, with valid JSON, unique refIds, and no stale references.
0 open findings
What changed in this PR
This PR hand-updates the two deCDN node Grafana dashboards so their decdn_* series track upstream decdn/decdn#2354 ("scope node refusals to three classes and recover funding once per fetch"). Because nothing in CI ties these dashboards to the node's exporter, a renamed or removed series would silently render (no data), so the dashboards must be edited by hand to match the exporter — which is exactly what this PR does.
I verified every changed name against the authoritative upstream source (crates/node/src/metrics.rs on refs/pull/2354/head): the new/renamed names exist, the removed name is gone, and the "no reason counter" subtraction list is byte-identical (order and membership) to upstream's INBOUND_FAILURE_REASONS. Both JSON files parse cleanly, no panel has duplicate refIds (the new refId: "V" is unique in each panel), and the two dashboards are mutually consistent.
Changes:
- Pull-leg rename
decdn_node_pull_reactive_topup_total→_recovery_step_totaland..._refused_total→_recovery_step_refused_total(delivery dashboard). - Added a
pool closingrefusal line (decdn_serve_stream_rejected_pool_closing_total) to the "Serve refusals by reason" panel and the same term to the "Unattributed stream failures" subtraction, in both dashboards. - Removed the
post-eviction failuresquery (decdn_probe_post_eviction_failures_total), which the node no longer exports.
| File | Description |
|---|---|
| monitoring/decdn-node/dashboard-delivery.json | Applies the pull-leg metric rename, adds the pool closing refusal line + subtraction term, and drops the removed post-eviction query. |
| monitoring/decdn-node/grafana-dashboard.json | Adds the pool closing refusal line and the matching subtraction term to keep the overview dashboard in sync with the exporter. |
🧠 Review effort: Balanced
Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.
…lasses decdn#2354 replaced the per-reason refusal codes with NotFound, Declined and Unfunded, so the two "Serve refusals by reason" descriptions named codes the node no longer signs. Map each reason to its class, as ServeRejectReason::wire_error does. Drop the stale sibling count from "Unattributed stream failures" (it said 29; the expression subtracts 31, and the node's INBOUND_FAILURE_REASONS test holds the list). Describe the pull leg's pool plumbing panel, and log the change in the chart CHANGELOG. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Why
decdn/decdn#2354 changes which series
decdn-nodeexports. Panels that name a series the node no longer exports render(no data), and nothing in CI checks the names, so the dashboards follow by hand.What
monitoring/decdn-node/dashboard-delivery.json:decdn_node_pull_reactive_topup_totalbecomesdecdn_node_pull_recovery_step_total("recovery step"), anddecdn_node_pull_reactive_topup_refused_totalbecomesdecdn_node_pull_recovery_step_refused_total("recovery step refused").pool closingline,decdn_serve_stream_rejected_pool_closing_total(refIdV).post-eviction failuresquery (decdn_probe_post_eviction_failures_total) is removed; the node no longer exports it.decdn_serve_stream_rejected_pool_closing_total, so the panel stays at zero when every inbound failure has a reason.monitoring/decdn-node/grafana-dashboard.json:pool closingline.Panel descriptions and changelog:
NotFound,Declined,Unfunded) that replaced the per-reason codes, mapped as upstream'sServeRejectReason::wire_errordoes.INBOUND_FAILURE_REASONS.charts/decdn-node/CHANGELOG.md: a Changed entry.Every non-iroh
decdn_*name in both dashboards was checked against the node and cache source on the decdn#2354 branch.Merge order
Merge with or after the decdn release that carries decdn#2354. Before that release, the renamed and new series render
(no data)on nodes that still export the old names. Unattributed stream failures goes blank as a whole, not just one line: it subtractsdecdn_serve_stream_rejected_pool_closing_total, and an absent series empties the expression.Testing
jq emptyon both dashboards.make lint-helmwas not run locally (nohelm/promtoolhere); CI runs it. Only dashboard JSON changed.🤖 Generated with Claude Code