Skip to main content
Start a metrics server on the pipe process. Required by Pipes UI and by anything that scrapes Prometheus (Grafana, Alertmanager, etc.).
Parameters:
  • 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.

Custom metrics

Register counters, gauges, histograms, and summaries via ctx.metrics in whole-pipe transformers, targets, or when consuming the pipe as an async iterator. See the Metrics guide.

See also

  • Pipes UI — visual dashboard that consumes /stats and /profiler.
  • Metrics — walkthrough for exposing Prometheus metrics and adding custom series.
  • Profiling — interpreting the /profiler span tree.