prompb/README.md
This directory contains Protocol Buffer (protobuf) definitions for Prometheus' remote read and write protocols. These definitions are used to serialize and deserialize time series data, such as metrics, labels, samples, and queries, for network communication to Prometheus.
The files here are synced to buf.build,
a public protobuf schema registry, from the main branch of the Prometheus
repository.
Protobuf messages and services for:
WriteRequest,
TimeSeries).ReadRequest, Query,
ChunkedReadResponse).Label, MetricMetadata, and exemplars.Key files include:
remote.proto: Defines the remote read/write services and messages.types.proto: Common types used across protocols.io/prometheus/client/metrics.proto: Client metrics definitions.io/prometheus/write/v2/types.proto: Remote Write v2 protocol types.These protobuf definitions follow the stability policies of the Prometheus project. Backward-compatible changes may occur in minor releases, but breaking changes are reserved for major versions (e.g., Prometheus 3.0). Experimental or unstable features are clearly marked in the documentation.
To modify these definitions, view and edit the source in the Prometheus GitHub repository: https://github.com/prometheus/prometheus/tree/main/prompb.
make proto in the root directory to regenerate the compiled protobuf
code.