TrafficPolicy

Query per-backend metrics (grouped by backend)

get/api/v1/trafficpolicies/{name}/metrics

Request

  • Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/v1/trafficpolicies/{name}/metrics
  • Auth: none declared

Path parameters

namestring required

Query parameters

metric'request_rate' | 'latency' | 'error_rate' | 'cpu_util' | 'mem_util' | 'gpu_util' required
rangestring required

ISO 8601 duration (5m, 1h, 24h).

stepstring
backendstring

Scope to one member backend (service name).

Response

Metric series.

metricstring required

Metric name (e.g. qps, latency).

percentilestring

Percentile the series represents (e.g. p95).

rangestring required

Query time range (e.g. 1h).

stepstring

Sampling step between points (e.g. 1m).

unitstring

Value unit (e.g. ms, req/s).

Example response

{
  "metric": "qps",
  "percentile": "p95",
  "range": "1h",
  "series": [
    {
      "timestamp": "2026-06-28T09:00:00Z",
      "value": 12.5
    },
    {
      "timestamp": "2026-06-28T09:30:00Z",
      "value": 18.3
    },
    {
      "timestamp": "2026-06-28T09:25:00Z",
      "value": 15.1
    }
  ],
  "step": "1m",
  "unit": "req/s"
}

Changes

No recorded changes to this operation across all 17 revisions of this API.