Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support remote write 2.0 on receive #8033

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

saswatamcode
Copy link
Member

@saswatamcode saswatamcode commented Jan 2, 2025

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

Porting remote write 2.0 into receive.
A lot of the handler code is duplicated, but given that at some point, remote write 1.0 will be deprecated, might make sense to keep them separate.

Added some initial tests

Lots of code inspired by prometheus/client_golang#1658 or prometheus upstream

TODOs:

  • Implement capnp replicationfor v2
  • fit Store interface from client_golang PR
  • Metadata ingestion tests
  • stats response header tests
  • e2e tests
  • benchmarks
  • Explore using buf

Feel free to review and add your thoughts! :)

Fixes #7935 (but is blocked on native histogram downsampling)

Verification

pkg/receive/handler_writev2.go Dismissed Show dismissed Hide dismissed
pkg/receive/handler_writev2.go Dismissed Show dismissed Hide dismissed
Signed-off-by: Saswata Mukherjee <[email protected]>
Signed-off-by: Saswata Mukherjee <[email protected]>
Signed-off-by: Saswata Mukherjee <[email protected]>
@saswatamcode saswatamcode marked this pull request as ready for review January 3, 2025 11:55
@saswatamcode saswatamcode marked this pull request as draft January 3, 2025 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remote write 2.0 support
1 participant