Skip to content

fix(monitoring): account for the unattested refusal and attestation-lapse stop from decdn#2921 - #213

Draft
thiras wants to merge 1 commit into
mainfrom
feat/monitoring-unattested
Draft

thiras wants to merge 1 commit into
mainfrom
feat/monitoring-unattested

Conversation

@thiras

@thiras thiras commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Follows decdn/decdn#2921. That PR adds two INBOUND_FAILURE_REASONS to the node:

  • decdn_serve_stream_rejected_unattested_total is a Declined refusal. The node holds the blob but no live origin attestation for it.
  • decdn_serve_stream_terminated_unattested_total counts deliveries the node resets mid-stream once their attestation lapses: it expired with no fresher one found, or its signer lost its seat or came onto the origin deny-set.

Changes

  • Unattributed stream failures (overview and delivery dashboards): both panels subtract both counters, so these ends no longer show as unattributed.
  • Serve refusals by reason (both dashboards): a new unattested series (refId AB). Both descriptions name it.
  • Node-side faults (delivery dashboard): terminated: attestation lapsed (refId G) sits beside the takedown terminations. The panel description now covers it.

Merge after the decdn release that carries #2921

Each of these panels subtracts a plain chain of sum(rate(...)) terms. A term for a series that the fleet does not export yet empties the whole expression. If this merges while the fleet still runs v0.3.x, both Unattributed panels show no data. So this stays a draft until decdn/decdn#2921 merges and ships in a release, per the dashboards skill's rule 4.

The Unattributed panels also need the other reasons added to decdn main since v0.3.1 (see #206) before that release reaches the fleet. This PR does not cover those.

Testing

  • Both files parse as JSON, and the repo's pre-commit hooks pass.
  • promtool check rules (prom/prometheus v3.14.0) parses the five edited expressions, with the template variables substituted.
  • Both Unattributed panels now subtract both unattested names, checked against INBOUND_FAILURE_REASONS on the #2921 branch.

🤖 Generated with Claude Code

…apse stop from decdn#2921

decdn/decdn#2921 adds two INBOUND_FAILURE_REASONS:
decdn_serve_stream_rejected_unattested_total (a Declined refusal: the
node holds the blob but no live origin attestation for it) and
decdn_serve_stream_terminated_unattested_total (a delivery reset
mid-stream once its attestation lapses).

- Both "Unattributed stream failures" panels subtract them.
- Both "Serve refusals by reason" panels plot the refusal.
- The delivery dashboard's node-side faults panel plots the termination
  beside the takedown terminations.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

This branch has not been deployed

No deployments
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.

1 participant