Metrics

Fetch a time-series range for a single metric on a node.

Changed on
get/nodes/{id}/metrics

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP bearer

Path parameters

idinteger required

Node ID

Query parameters

metricstring required

Metric name, e.g. "pg.connections_active".

rangestring

Time window: "1h" | "6h" | "24h" | "7d". Ignored when start_time and end_time are both set.

percentilenumber double nullable

Optional histogram percentile (0–100). When provided, the endpoint fetches histogram buckets and computes the requested quantile.

start_timestring nullable

Explicit window start (ISO 8601). Must be paired with end_time.

end_timestring nullable

Explicit window end (ISO 8601). Must be paired with start_time.

Response

Metric time series data points

timestring required

ISO 8601 timestamp with Z suffix.

valuenumber double nullable

Metric value at this bucket. null when no sample landed in the bucket (the sampler, or the server, was not running), so charts break the line instead of interpolating across the outage. Per-interval request counters read 0 instead: no sample there means no traffic. Every bucket of a window up to 7 days is present.

Changes

    • breaking

      the response property items/value became nullable for the status

    • breaking

      the response property items/value became optional for the status

    • info

      the response property items/value became required for the status