[meta] PROM-35 Remote Write (PRW2.0) Stability
Context
This is an umbrella issue collecting things we plan to implement for the stable Prometheus Remote Write 2.0 (PRW2.0) protocol and Prometheus implementation; also described by the PROM-35 proposal. Superseeds https://github.com/prometheus/prometheus/issues/1310 and https://github.com/prometheus/prometheus/issues/14360
Anyone is welcome to comment or DM me, @cstyan or @saswatamcode to add/update/remove things from this list!
Acceptance Criteria
This is issue will be closed when we will be able to mark PRW2.0 as stable and when we can start the official process of planned deprecation and switching the default PRW method to V2 instead of V1. That "stability", depends in general, on:
a) The acceptable state (functionality and performance) of the Prometheus receive and export (write) Remote Write 2 implementation. b) Some adoption for (at least) receiving in the ecosystem, by systems like Cortex, Thanos, Mimir and/or vendors.
Tasks
List of tasks towards stability.
Protocol
- Decide what to do with "Timestamp on exemplar is MUST" @cstyan
- Decide on delta type improvement (specifically CT/ST per sample addition) @fionaliao @carrieedwards
- NewRelic dev asked in the past what to do with the WriteResponse when the parsing is async. Extend the protocol to cover this case (e.g. "Written" header with "N/A" value or so) (breaking change)
- Consider the best way to allow exemplar per sample and per series handling
Prometheus Implementation
- Ensure type-and-unit feature works with RW (https://github.com/prometheus/prometheus/issues/16610).
- Document behaviour (https://github.com/prometheus/prometheus/issues/14407)
- Prometheus uses the official RW client on receive (thanks to @pipiland2612!)
- Ensure RW new features works on agent mode (https://github.com/prometheus/prometheus/issues/13483).
- STs are working with RW sending (https://github.com/prometheus/prometheus/issues/14220)
- PRW1 metadata parity (https://github.com/prometheus/prometheus/issues/17191) (in progress #17436)
- Decide on PRW2 metadata instrumentation semantics (https://github.com/prometheus/prometheus/issues/19818)
- Known bugs fixed
- 422 or 400 for native histogram disabled (https://github.com/prometheus/prometheus/issues/17181)
- https://github.com/prometheus/prometheus/issues/17075
- Make exemplar implementation follow the spec https://github.com/prometheus/prometheus/issues/17857
- Alternatively consider spec addition (adding Exemplar to "Sample")
- STs are working with RW receiving (https://github.com/prometheus/prometheus/pull/19251) (could be descoped?)
Adoption / Documentation / Integrations
- Finalize RW2 sender compliance tests (https://github.com/prometheus/compliance/issues/208)
- Ship the blog post on RW stability and compliance. (https://github.com/prometheus/prometheus/issues/17603, https://github.com/prometheus/prometheus/issues/14254)
- Gather latest/contribute/help with PRW 2.0 in Thanos cc @saswatamcode
- Gather latest/contribute/help with PRW 2.0 in Cortex cc @alanprot
- Gather latest/contribute/help with PRW 2.0 in Mimir cc @krajorama
- Gather latest adoption state from vendors/providers (I'm heard some rumours about Google, Grafana Cloud and NewRelic; to double check).
Out of scope for GA / nice-to-have
- Address TODO's in Remote Write Prometheus code and tests (https://github.com/prometheus/prometheus/issues/13479).
- Finish proposal for reasoning documentation (https://github.com/prometheus/prometheus/issues/13887) @bwplotka
- Metadata in WAL related tickets, likely closable, especially less relevant If we assume
metadata-wal-recordsfeature discouraged (IMO)- Metadata vs max samples limit (https://github.com/prometheus/prometheus/issues/13480).
- metadata + cache (https://github.com/prometheus/prometheus/issues/13482)
- Consider new compression (https://github.com/prometheus/prometheus/issues/13366)
- DRY code (https://github.com/prometheus/prometheus/issues/13481, https://github.com/prometheus/prometheus/issues/14409).
- Prometheus uses the official RW client @saswatamcode on sender.
- This has been attempted, but the special handling for age limited retries and lack of sent bytes metric is blocking. Something to consider adding to lib to have lib used in Prometheus, but not a blocker for stability. https://github.com/prometheus/prometheus/pull/17373
- Official benchmarks numbers for the protocol itself (https://github.com/prometheus/prometheus/issues/14253) (FYI prombench already benchmark implementation).
Source: prometheus/prometheus