Skip to content

monitoring: alert and panel for decdn_node_boot_ready (decdn#2821) #202

Closed

Description

@thiras

What are you trying to do?

Page on a decdn-node that is stuck in boot.

decdn/decdn#2821, which fixes decdn/decdn#2819, changes when the node's /metrics listener comes up:

  • The listener binds before the RPC preflight and the boot chain reads, so a booting node answers scrapes.
  • It adds the gauge decdn_node_boot_ready. The gauge reads 0 from process start, and 1 from the node runtime ready banner onward.

This changes what the existing rules see:

  • DecdnNodeDown no longer fires for a node that is stuck in boot. Its scrape succeeds, so up == 1. Without a new rule, a stuck boot pages nothing. Example: on 2026-11-01 all 8 fleet nodes were in a boot loop for about 22 min.
  • DecdnRpcUnhealthy needs no change. #2821 seeds decdn_rpc_healthy to 1 as soon as the RPC preflight passes, so a slow boot does not read as an RPC outage.
  • DecdnNoActiveStreams (15 m) and DecdnDhtRoutingTableEmpty (30 m) now also fire on a stuck boot. That is accurate for a node that serves nothing. Keep them.

Timing: the gauge is unreleased. This must land in the same rollout as the decdn release that carries #2821, not before (the rule that a panel names only a released metric applies) and not after (the DecdnNodeDown gap).

What would help?

1. Alert in monitoring/decdn-node/prometheus-alerts.yml, next to DecdnRpcUnhealthy. It matches the recommended alert in adr/appendix-observability.md § Node / Process Metrics:

- alert: DecdnNodeBootStuck
  expr: max_over_time(decdn_node_boot_ready[15m]) == 0
  for: 10m
  labels:
    component: node   # or whichever component the node-lifecycle rules use
    severity: warning
  annotations:
    runbook_url: "https://github.com/decdn/decdn/blob/main/docs/runbook.md#rpc-unreachable"
    summary: "{{ $labels.instance }} has not finished boot"
    description: |
      decdn_node_boot_ready has read 0 for 10 m with no 1 sample in the
      last 15 m. If decdn_chain_boot_read_retries_total rises, a boot chain
      read is retrying. If it does not rise, the node is stuck before the
      chain reads: read the first WARN or ERROR line after "deCDN node starting".

When it fires:

Case Fires after
First boot (the window holds only 0 samples) about 10 m, which matches the node's 10-minute boot-read budget
Restart of a node that was ready (the last 1 stays in the window for 15 m) up to 25 m

max_over_time keeps the rule firing through the gaps that a crash loop leaves in the series. A node that exits before its first scrape has no series at all. up == 0 (DecdnNodeDown) already covers that case.

2. promtool cases in prometheus-alerts_test.yml:

Series Expected
0 for 25 m fires
a 1 sample inside the 15 m window silent
ready (1), then restarted and stuck at 0 fires about 25 m after the last 1

3. Panel in monitoring/decdn-node/dashboard-chain.json. The panel that plots decdn_chain_boot_read_retries_total (refId C) gets a new target, refId E:

min(decdn_node_boot_ready{deployment_environment="$env",region=~"$region",instance=~"$instance"})

with the legend "min boot ready". Follow .claude/skills/grafana-dashboards/SKILL.md.

4. Verify with make lint-helm, which runs promtool.

Deploy path

Helm chart (the chart renders monitoring/decdn-node/ through files/monitoring)

Activity

  1. self-assigned this
    on Nov 1, 2026
  2. added
    enhancement
    on Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions