Open-Source Wikis

/

Prometheus

/

API

prometheus/prometheus

API

Prometheus exposes one HTTP API surface. This section covers the v1 routes, the federation endpoint, the remote write/read protocols, and the OTLP receiver.

WEB-1 Mantine UI shell, navigation, and readiness

WEB-2 Query page and PromQL execution

Surface Where to look
v1 JSON API web/api/v1/api.go; routes under /api/v1/...
Remote write/read storage/remote/; /api/v1/write, /api/v1/read
OTLP receiver storage/remote/write_otlp_handler.go; /api/v1/otlp/v1/metrics
Federation web/federate.go; /federate?match[]=...

The OpenAPI specification is generated programmatically and served at /openapi.yaml. The golden file is at web/api/v1/testdata/openapi.yaml and is enforced by web/api/v1/openapi_golden_test.go.

Built by Factory AutoWiki from public repository content. It is a generated preview for codebase exploration, not source-maintained documentation.

API – Prometheus wiki | Factory