Home / Telemetry export

Every run, in the dashboards your teams already use.

New in 1.4.5 and off by default: the Pipewright launcher exports metrics and traces over OpenTelemetry (OTLP/HTTP) to any OTLP backend. You see how many runs started, what the rules held or refused, how long a trigger takes to become a run, and the trace of every run down to each pipeline step. Names, counts and times only, never data.

Why it is there

Your launcher speaks OpenTelemetry. Your backend does the rest.

Every trigger passes through the launcher: landing files, schedules, API calls, run requests, retrain decisions and the scheduled checks. Until now, the platform's own charts knew requests and CPU, not use cases and runs. With the export on, the launcher sends what it knows in the standard format, so Grafana, Datadog, Honeycomb, Google Cloud’s own Cloud Trace and Managed Service for Prometheus, or any other OTLP backend can chart it and alert on it.

Metrics

Six metrics, stable in 1.x

Runs started, refused and deduplicated, the time from trigger to run, retrain cases waiting for a decision, and failed scheduled checks. Names, types, units and attributes are part of the stable surface.

Traces

The trace of every run

A span per trigger and per run start; when a run ends, a span for the run and one per step from the orchestrator’s own times, parented to the trigger. On Agent Platform and on Kubeflow.

Safe

Operations, not evidence

The record of decisions stays the event log and the evidence. Telemetry never fails a run, changes an outcome or blocks the launcher.

What is exported

Six metrics and five spans. The contract is generated from the code.

The full contract, with every attribute and its values, is docs/TELEMETRY.md in the Pipewright repository. It is generated from the code, so it cannot drift from what the launcher sends.

MetricTypeunitAttributesWhat it counts
pipewright.runs.startedcounterusecase, pipeline, triggerA run the launcher submitted and the orchestrator accepted
pipewright.runs.refusedcounterusecase, trigger, reasonA trigger not submitted: no live release, an integrity or feature check, a scoring run held for a person, a refused submission, an invalid request
pipewright.runs.deduplicatedcounterusecase, triggerA retry absorbed by the deterministic run ID
pipewright.trigger.latencyhistogram (seconds)trigger, tenantFrom the trigger’s own time (a file’s creation, a schedule’s time) to the orchestrator accepting the run
pipewright.cases.opengaugeusecaseRetrain cases waiting for a decision
pipewright.tick.failurescountercheckA failed pass of one of the launcher’s scheduled checks

The spans

  • pipewright.trigger: one per trigger (a landing file, a schedule, an API call, a run request, a check)
  • pipewright.release.read: the live release read for the use case
  • pipewright.run.start: the policy checks, deduplication and the submission
  • pipewright.run: the run, written when it finishes, parented to its trigger
  • pipewright.step: one per pipeline step, from the orchestrator’s own start and end times

From a trigger to every step

  • The run carries its trace. The label pipewright-trace on the run ties it to the trigger that started it; Kubeflow runs keep the trace in their description.
  • Both orchestrators. Step spans on Agent Platform Pipelines and on Kubeflow Pipelines on GKE.
  • Counters start at 0. The counters a live release can increment are there from the start, so a dashboard sees the first refusal of each kind.
  • Traces you can sample. sample_ratio sets the share of traces kept (default 1, every trace). Metrics are exported every 60 seconds by default.
What never leaves

Names, counts and times. Never data.

Telemetry leaves your project, often for a third-party tool, so the launcher decides what goes out before anything is sent, and keeps itself safe when the backend is slow or down.

  • Allowlisted attributes only. Every metric and span attribute is on a fixed list; any other is dropped before export.
  • Never exported: file and object names, personal data, row values, feature values, predictions, SQL text, credentials and headers.
  • Bounded values. A value outside its list becomes other. Run, case and release IDs go on spans only, never on metrics.
  • A series budget. At most 5,000 active series per environment; beyond it, new combinations are recorded as other and the launcher logs it once.
  • It never fails a run. Bounded queues that drop when full, a 10 second export timeout, a 5 second flush at shutdown, and one log line a minute while exports fail.
  • It never blocks the launcher. A backend outage loses some telemetry and nothing else.
  • A caller cannot take over a trace. A traceparent sent by a caller is recorded as a span link, never adopted as the parent, and never sets a team, use case or decision.
  • Nothing loaded when off. The otel extra is in the launcher image; without the setting, nothing is imported.
Sample dashboards

One dashboard per reader. Import them and go.

Four Grafana dashboards come with Pipewright, in the core repository’s examples/telemetry, built only on the telemetry contract. A demo traffic generator sends what a busy launcher would, for five made-up use cases, so you can try them without a platform. The screenshots below are from that demo. Select a picture to see it full size.

The overview dashboard: runs started, runs held or refused by the rules, retries absorbed, trigger to run at the 95th percentile, decisions waiting for a person, runs started per use case, how runs start by trigger, and a table of recent runs.
Overview, for everyone. How many runs started, how many the rules held or refused, how many retries were absorbed, how fast triggers become runs, and how many decisions wait for a person. Open a recent run to see its trigger, the run and every step.
The SRE dashboard, launcher health: trigger to run at p50, p95 and p99, failed scheduled checks, trigger to run by trigger and its distribution, the refused share of triggers, retries absorbed, failed checks by check, and tables of failed and slow runs.
SRE and platform: launcher health. Trigger to run at p50, p95 and p99 and its distribution, the share of triggers refused, failed scheduled checks by check, and the failed and slow runs to look at first.
The ML team dashboard: runs started, held or refused, retries absorbed and decisions waiting for the chosen use cases, runs by pipeline, why runs were held or refused, retrain decisions waiting by use case, and the latest runs with their steps.
ML teams: your use cases. Pick a use case and see its runs by pipeline, why runs were held or refused (features, integrity, no live release), the retrain decisions waiting, and each run as a trace with every step.
The governance dashboard, the rules at work: runs held for a person, refused by integrity and by the feature contract, retrain decisions waiting, held and refused runs by reason and by use case, decisions waiting over time, and the traces of the runs the rules held or refused.
Governance and risk: the rules at work. What the platform’s rules held for a person or refused, and why, by use case, with the traces of those runs. The record of decisions stays the event log and the evidence.

In Grafana, import a file and choose a Prometheus and a Tempo data source. Any backend that stores OTLP metrics under Prometheus names works: Grafana Cloud, Google Cloud Managed Service for Prometheus read through Grafana, Mimir, or Prometheus 3 with its OTLP receiver.

Switch it on

One setting in the manifest. Off until you set it.

The export is on when the environment’s manifest has observability.otlp: an OTLP/HTTP endpoint, usually an OpenTelemetry Collector. The starter and Pipewright Enterprise write it for you. Nothing about your existing use cases changes when you upgrade to 1.4.5.

terraform.tfvars (the open-source starter)
# Google's OpenTelemetry Collector as a sidecar beside the launcher:
# traces to Cloud Trace, metrics to Managed Service for Prometheus
otlp = {}

# or straight to another OTLP/HTTP backend, the token in Secret Manager
otlp = {
  endpoint       = "https://otlp.example.com"
  headers_secret = "projects/example-project/secrets/otlp-headers/versions/1"
}

The Collector’s redaction processor keeps the same allowlist of attributes before anything leaves, a second line of defence. The sidecar is not a startup dependency of the launcher.

Cost

Small, and in your own project. From Google’s list prices.

Telemetry is billed by your backend. On Google Cloud, Managed Service for Prometheus bills per sample and Cloud Trace per span; the launcher’s volume is low. The starter’s README puts its telemetry at about $1 a month for a small environment.

ItemThe startersidecar CollectorPipewright Enterprisetelemetry gateway
Managed Service for Prometheus$0.06 per million samples (about $0.65 a month for 10 use cases)$0.06 per million samples (about $5 a month for 100 use cases)
Cloud Trace2.5 million spans a month free, then $0.20 per million2.5 million spans a month free, then $0.20 per million
The Collector’s configuration secret$0.06 a month$0.06 a month
The CollectorThe sidecar’s memory (256 MiB) while a launcher instance runsCloud Run: about $98 a month at 2 instances (about $49 at 1). Private GKE: 2 pods of 0.5 vCPU and 512 MiB on the existing nodes, no new resource
A vendor routeNot applicableThrough Private Service Connect, about $7.30 a month plus $0.01 per GB

With the launcher on Cloud Run, telemetry leaves while requests run and when an instance stops, so a quiet instance may hold some of it until its next request. cpu_always sends it at once, at the cost of instance-based billing (about $0.0648 an hour per launcher instance while one is up).

Pipewright Enterprise

The telemetry gateway is the one auditable way out: it runs inside the service perimeter on Cloud Run or private GKE, its image pinned by digest from your registry, its redaction processor keeps the contract’s attributes only, and the manifest names it, so nothing else can be the endpoint. See Enterprise.

New in Pipewright 1.4.5

Your runs, next to everything else you watch.

Telemetry export is in the open-source core, off until you set observability.otlp. Start with the sample dashboards and the demo traffic, then point it at your own backend.