Files
mattgodbolt-molty 6cb0bac0bb fix: measure ce_startup_seconds from OS boot, not Node process start
The ce_startup_seconds metric was recording process.uptime() — the time
from Node process launch to CE serving requests (~15-30s). This misses
the boot-to-Node-start phase (start.sh downloading the release tarball,
unpacking, EFS mounts, etc.) which in practice takes an additional
~20-30s, making the total boot-to-serving time ~50s.

The metric is used in Grafana to track startup duration for health check
grace period sizing. If it only captures Node startup, the full picture
is hidden and it becomes easy to underestimate the total time a new
instance needs before it can pass ALB health checks.

Fix: read /proc/uptime at the moment CE starts listening, which gives
the true time elapsed since OS boot. Falls back to process.uptime() on
non-Linux platforms where /proc/uptime is unavailable.

Also introduce ce_node_startup_seconds alongside ce_startup_seconds so
both the Node-only and total boot times are visible in Grafana without
losing the existing data series.

🤖 Generated by LLM (Claude, via OpenClaw)
2026-04-09 07:31:19 -05:00
..
2026-03-21 21:21:40 +01:00
2025-07-28 10:34:46 -05:00
2025-07-28 10:34:46 -05:00