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

[PRW 2.0] Moved rw2 proto to the full path (both package name and placement) #13973

Merged
merged 1 commit into from May 8, 2024

Conversation

bwplotka
Copy link
Member

@bwplotka bwplotka commented Apr 23, 2024

Changes:

  • New path: github.com/prometheus/prometheus/prompb/io/prometheus/write/v2, so io/prometheus/write/v2 package. This is what buf recommends https://buf.build/docs/reference/protobuf-files-and-packages#packages and i shortened it (we will likely never have "local write").
  • WriteRequest -> Request.
  • Updated commentary + grammarly.
  • Change behaviour for samples and histograms. It makes sense more I think, given metadata will be different for the known case this happens too.

@bwplotka bwplotka marked this pull request as ready for review May 2, 2024 15:08
@cstyan
Copy link
Member

cstyan commented May 6, 2024

Change behaviour for samples and histograms. It makes sense more I think, given metadata will be different for the known case this happens too.

Looks fine to me but I'm not seeing ☝️ this change, which I think you intended to commit (based on your note there but also the changes to the comments in the proto files).

Comment on lines -51 to 60
// (histograms field), although it should be extremely rare in practice (e.g.
// only when classic histogram series and native histogram share exactly the
// same metric name).
// Timeseries messages can either specify samples or (native) histogram samples
// (histogram field), but not both. For typical clients (~real-time metric
// streaming), in healthy cases, there will be only one sample or histogram.
//
// Samples are sorted by timestamp (older first).
// Samples and histograms are sorted by timestamp (older first).
repeated Sample samples = 2 [(gogoproto.nullable) = false];
// histograms contain zero or more histogram samples for a given timeseries.
// For typical clients, in healthy cases, there will be only one sample, for ~real
// time metric streaming. histograms can co-exist with samples (see samples
// for details).
//
// histograms are sorted by timestamp (older first).
repeated Histogram histograms = 3 [(gogoproto.nullable) = false];
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes to samples & histogram samples behaviour I mentioned.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bwplotka
Copy link
Member Author

bwplotka commented May 7, 2024

@bwplotka
Copy link
Member Author

bwplotka commented May 8, 2024

Merging this, we can revert the commentary about samples vs histogram sample semantics later on, adding to our agenda: https://docs.google.com/document/d/1TYKB_XqVgkEZlxosQ9BM0XR8JFi0pctlNQ-gdu1wuRw/edit

@bwplotka bwplotka merged commit 6673c34 into remote-write-2.0 May 8, 2024
37 checks passed
@bwplotka bwplotka deleted the rw20-proto branch May 8, 2024 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants