Skip to content

REST and SSE API ​

All JSON endpoints return an envelope format:

json
{
  "ok": true,
  "data": { ... }
}
MethodEndpointDescription
GET/api/healthOverall health state, PID, uptime, Node version, and current lag.
GET/api/memoryProcess memory stats (RSS, heapUsed, heapTotal, external).
GET/api/cpuProcess CPU percentages (total, user, system).
GET/api/event-loopCurrent, maximum, and average event-loop lag times.
GET/api/requestsRecent HTTP traffic buffer and aggregate metrics.
GET/api/outgoingRecent outgoing HTTP calls with status and duration.
GET/api/queriesRecent database queries with slow and N+1 flags.
GET/api/errorsGrouped errors with counts, stacks and last request.
GET/api/routesDeclared routes (Express, Fastify, NestJS, Hapi, Hono).
GET/api/logsCaptured console logs buffer with timestamp and level.
GET/api/envMasked environment variables and app configurations.
GET/api/startupStartup timeline marks registered via server.mark().
GET/api/metricsPer-second request and error buckets for the last minute.
GET/api/configEffective (non-secret) configuration, panel list and plugin meta.
GET/api/<plugin-id>Output of each registered custom panel (plugins option).
GET/api/liveServer-Sent Events (SSE) real-time metric stream.
POST/api/confirmationsIssues a single-use cryptographic token for mutating actions.
POST/api/heap-snapshotTakes a V8 heap snapshot (requires x-nodeui-confirm header).

Metrics, runs and tools ​

MethodEndpointDescription
GET/api/timeseriesMetrics history (range, from/to, points, heatmap=1) with annotations and heap trend.
GET/api/routemetricsPer-route latency percentiles, errors and trend.
GET/api/runsSaved load-test runs, the active recording and the baseline id.
POST/api/runs/start, /stop, /save, /delete, /baseline, /import, /reset-routesManage runs.
GET/api/runs/exportAll saved runs as a JSON download.
GET/api/prometheusPrometheus text exposition for a local Grafana.
GET/api/alertsAlert rules, state and fired/resolved history.
POST/api/alerts/add, /removeManage alert rules.
POST/api/annotations/add, /removeChart markers.
GET/api/cpu-profileCPU profile state and result.
POST/api/cpu-profile/start, /stopRecord a CPU profile (start needs x-nodeui-confirm).
GET/api/heap-profileSampling heap profile state and result (live allocations by function).
POST/api/heap-profile/start, /stopRecord a heap allocation profile (start needs x-nodeui-confirm).
GET/api/diagnoseRule-based findings over the last 5 minutes, each with evidence and a next step.
GET/api/loadtestBuilt-in load generator status.
POST/api/loadtest/start, /stopFire load at the app (start needs x-nodeui-confirm).
POST/api/replayRe-send a captured request to the app (needs x-nodeui-confirm).

Actions marked as needing x-nodeui-confirm take a fresh single-use nonce from POST /api/confirmations.

Released under the Apache-2.0 License.