Metrics

Fetch one metric combined across several nodes: summed counters, ratios of summed parts, the slowest node's latency, otherwise the mean.

Changed on
get/nodes/metrics/cluster

Request

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

Query parameters

metricstring required

Metric name, e.g. "proxy.requests".

node_idsstring required

Comma-separated node ids (0 = control plane), at most 64.

rangestring

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

start_timestring

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

end_timestring

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

Response

Combined metric time series

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