Skip to content

feat(monitoring): follow decdn's refusal classes and recovery-step metrics - #104

Merged
thiras merged 2 commits into
mainfrom
monitoring/refusal-classes
Oct 9, 2026
Merged

thiras merged 2 commits into
mainfrom
monitoring/refusal-classes

Conversation

@alpergundogdu

@alpergundogdu alpergundogdu commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Why

decdn/decdn#2354 changes which series decdn-node exports. 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:

  • Pool plumbing on the pull leg: decdn_node_pull_reactive_topup_total becomes decdn_node_pull_recovery_step_total ("recovery step"), and decdn_node_pull_reactive_topup_refused_total becomes decdn_node_pull_recovery_step_refused_total ("recovery step refused").
  • Serve refusals by reason: a new pool closing line, decdn_serve_stream_rejected_pool_closing_total (refId V).
  • Cache integrity: the post-eviction failures query (decdn_probe_post_eviction_failures_total) is removed; the node no longer exports it.
  • Unattributed stream failures: subtracts 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:

  • Serve refusals by reason: the same pool closing line.
  • Unattributed stream failures: the same subtraction.

Panel descriptions and changelog:

  • Serve refusals by reason (both dashboards): the descriptions name the three wire classes (NotFound, Declined, Unfunded) that replaced the per-reason codes, mapped as upstream's ServeRejectReason::wire_error does.
  • Unattributed stream failures (both): drops the stale "29 siblings" count. The expression subtracts 31, the same list as upstream's INBOUND_FAILURE_REASONS.
  • Pool plumbing on the pull leg: gains a description of its five series.
  • 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 subtracts decdn_serve_stream_rejected_pool_closing_total, and an absent series empties the expression.

Testing

  • jq empty on both dashboards.
  • make lint-helm was not run locally (no helm/promtool here); CI runs it. Only dashboard JSON changed.

🤖 Generated with Claude Code

…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]>
Copilot AI balanced review requested due to automatic review settings October 8, 2026 15:07

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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_total and ..._refused_total → _recovery_step_refused_total (delivery dashboard).
  • Added a pool closing refusal 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 failures query (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]>
@thiras
thiras merged commit 6d893eb into main Oct 9, 2026
16 checks passed
@thiras
thiras deleted the monitoring/refusal-classes branch October 9, 2026 05:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants