---
title: "Chart the OTel pipeline counters over time."
method: GET
path: "/otel/pipeline-history"
tags: ["OTel"]
---

# Chart the OTel pipeline counters over time.

`GET /otel/pipeline-history`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/otel/pipeline-history`
- Auth: HTTP bearer

`/otel/pipeline-stats` gives lifetime totals and `/otel/ingest-errors`
gives failure reasons; this gives the shape over time — whether drops are a
past incident that already recovered or an ongoing bleed, which a
cumulative counter can never show.

Reads the delta series the background sampler writes to the shared metrics
store (`SourceKind::Node`, node 0). Values are **mean deltas per sample
interval**, not bucket totals — `sample_interval_seconds` in the response
carries the unit so the client can label them.

System-scoped like the other two pipeline endpoints: these counters are
process-wide, so there is no project parameter to scope by.

## Query parameters

- `range` string
- `start_time` string
- `end_time` string

## Response `200`

Pipeline counter history

- PipelineHistoryResponse: Time-series history for every counter the pipeline-stats sampler publishes.
  - `end_time` string, required: Resolved window end (ISO 8601, `Z`).
  - `sample_interval_seconds` integer, required: Interval the sampler writes at, in seconds. The client needs this to label values honestly: a bucket is the *mean delta per sample*, so "events per `sample_interval_seconds`", not a bucket total.
  - `series` PipelineSeries[], required: One entry per sampled counter, always the full set in a stable order — a counter with no data yet is present with an empty `points`, never omitted, so the client can render an empty chart instead of dropping the panel.
    - `name` string, required: Metric name, e.g. `otel.spans_dropped`.
    - `points` PipelineHistoryPoint[], required: Buckets in ascending time order. Empty when the window predates the first sample (a freshly started server has no history yet).
      - `time` string, required: ISO 8601 timestamp with `Z` suffix (bucket start).
      - `value` number, double, required: Bucket value — the mean per-sample delta, see [`PipelineSeries`].
  - `start_time` string, required: Resolved window start (ISO 8601, `Z`).
  - `step_seconds` integer, required: Bucket width actually used, in seconds. Server-derived from the window so a caller cannot request 1-minute buckets over 7 days.

## Other responses

- `400`: Invalid time range
- `401`: Unauthorized
- `403`: Insufficient permissions
- `503`: Metrics store not available

## Changes

- **2026-11-09** `12896146b193`: 4 breaking
  - removed the required property `extensions` from the response with the `400` status
  - removed the required property `extensions` from the response with the `401` status
  - removed the required property `extensions` from the response with the `403` status
  - removed the required property `extensions` from the response with the `503` status
- **2026-10-05** `4b228ebed583`: 4 info
  - added the optional property `status` to the response with the `400` status
  - added the optional property `status` to the response with the `401` status
  - added the optional property `status` to the response with the `403` status
  - added the optional property `status` to the response with the `503` status
- **2026-10-05** `63a80791dc58`: 4 warning
  - removed the optional property `status` from the response with the `400` status
  - removed the optional property `status` from the response with the `401` status
  - removed the optional property `status` from the response with the `403` status
  - removed the optional property `status` from the response with the `503` status
- **2026-09-23** `f4efc4d5c7b7`: 4 info
  - added the optional property `status` to the response with the `400` status
  - added the optional property `status` to the response with the `401` status
  - added the optional property `status` to the response with the `403` status
  - added the optional property `status` to the response with the `503` status
- …earlier changes not shown

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/otel/pipeline-history/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
