Get server metrics
Get server metrics. By default this endpoint returns fixed lookback windows per resource. For explicit windows, prefer from/to timestamps. The legacy resolutionSeconds+maxSamples model is still supported: effective lookback is approximately resolutionSeconds * (maxSamples - 1), and maxSamples is a hard cap on returned points per series (latest points are kept).
Global sampling resolution in seconds. Effective value is aligned to internal monitoring scrape cadence. When combined with maxSamples, this also controls historical lookback (roughly resolutionSeconds * (maxSamples - 1)). Maximum accepted value is 5184000 (60 days).
1 <= x <= 5184000Optional hard cap for returned samples per metric series (latest points are kept). Allowed range: 1..8640. With an explicit global resolution, maxSamples also controls lookback; without explicit resolution, default lookback windows are retained and only sample count is limited.
1 <= x <= 8640Optional explicit window start for historical sampling. Accepts ISO 8601 timestamp (recommended) or unix epoch seconds/milliseconds.
Response
Server Metrics
CPU metrics model. CPU use is returned as aggregate of whole seconds every 30 minute window, last 12 hours, including percentage utilization for the same samples. Additional detailed raw CPU metric samplings are nested under detailedMetrics.
Memory metrics model. Memory use in 1 hour intervals last 24 hours, in MiB. Memory used is calculated as MemTotal - MemAvailable (Linux available-memory estimate); this includes memory that is currently allocated, including cache/buffer memory not considered readily available. If MemAvailable data is unavailable, active memory is used as fallback.
Sampling metadata. meta.requested includes requested resolutionSeconds/maxSamples and resolved from/to timestamps. meta.series is keyed by response series path (for example memory.usageSamplings) with actualStart, actualEnd, actualResolutionSeconds, returnedSamples, and truncatedToMaxSamples.
Processes metrics model. Returns the number of processes in 30 minute intervals last 12 hours. Count as seen at timestamp.
Still need help? Share an idea