Preloads metrics-shim.cjs via `node --require` into the Indiekit process so heap, GC, event loop lag, CPU and handle metrics are exposed at :9209/metrics for Prometheus scraping. Uses prom-client collectDefaultMetrics. - Add metrics-shim.cjs (prom-client HTTP server, port 9209) - Add prom-client ^15.1.3 to dependencies - Wire --require ./metrics-shim.cjs into start.example.sh and npm serve script - Grafana: NodeJS Application Dashboard (11159) at console.giersig.eu Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
4.1 KiB
4.1 KiB