Start a metrics server on the pipe process. Required by Pipes UI and by anything that scrapes Prometheus (Grafana, Alertmanager, etc.).Documentation Index
Fetch the complete documentation index at: https://beta.docs.sqd.dev/llms.txt
Use this file to discover all available pages before exploring further.
port: HTTP port for the server (default:9090).
Endpoints
metricsServer() serves four HTTP endpoints on the configured port. They are all also useful for ad-hoc inspection with curl.
| Path | Content |
|---|---|
/stats | JSON — per-pipe progress, speed, portal query, SDK version. This is what Pipes UI polls. |
/metrics | Prometheus text — built-in sqd_* series plus any custom metrics you registered. Scrape this from Prometheus. |
/profiler | JSON — recent per-batch span trees. See Profiling. Empty when profiling is disabled. |
/health | Responds with ok. |
Custom metrics
Register counters, gauges, histograms, and summaries viactx.metrics in whole-pipe transformers, targets, or when consuming the pipe as an async iterator. See the Metrics guide.
