-
Notifications
You must be signed in to change notification settings - Fork 542
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
POC RW2 to RW1 and new fields #10432
Draft
krajorama
wants to merge
10
commits into
main
Choose a base branch
from
krajo/wip-rw2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The current solution returns 2xx , but doesn't actually ingest the samples. Prometheus does detect this prometheus-1 | time=2025-01-13T13:01:35.028Z level=ERROR source=queue_manager.go:1670 msg="non-recoverable error" component=remote remote_name=150c10 url=http://mimir-1:8001/api/v1/push failedSampleCount=2000 failedHistogramCount=0 failedExemplarCount=0 err="sent v2 request with 2000 samples, 0 histograms and 0 exemplars; got 2xx, but PRW 2.0 response header statistics indicate 0 samples, 0 histograms and 0 exemplars were accepted; assumining failure e.g. the target only supports PRW 1.0 prometheus.WriteRequest, but does not check the Content-Type header correctly" But we can do better and also start working towards RW2.0 support. Signed-off-by: György Krajcsovits <[email protected]>
Signed-off-by: György Krajcsovits <[email protected]>
krajorama
force-pushed
the
krajo/wip-rw2
branch
from
January 14, 2025 14:47
3607691
to
f0b12f6
Compare
Signed-off-by: György Krajcsovits <[email protected]>
krajorama
force-pushed
the
krajo/wip-rw2
branch
from
January 15, 2025 09:26
f0b12f6
to
4255f00
Compare
Add the encoded byte size of the metadata per time series and make a map of used symbol references to know how much of the symbols is because of metadata. Signed-off-by: György Krajcsovits <[email protected]>
Signed-off-by: György Krajcsovits <[email protected]>
krajorama
added a commit
that referenced
this pull request
Jan 15, 2025
From #10432 Signed-off-by: György Krajcsovits <[email protected]>
1 task
krajorama
added a commit
that referenced
this pull request
Jan 15, 2025
* fix(rw2.0): reject remote write 2.0 based on content type The current solution returns 2xx , but doesn't actually ingest the samples. Prometheus does detect this prometheus-1 | time=2025-01-13T13:01:35.028Z level=ERROR source=queue_manager.go:1670 msg="non-recoverable error" component=remote remote_name=150c10 url=http://mimir-1:8001/api/v1/push failedSampleCount=2000 failedHistogramCount=0 failedExemplarCount=0 err="sent v2 request with 2000 samples, 0 histograms and 0 exemplars; got 2xx, but PRW 2.0 response header statistics indicate 0 samples, 0 histograms and 0 exemplars were accepted; assumining failure e.g. the target only supports PRW 1.0 prometheus.WriteRequest, but does not check the Content-Type header correctly" But we can do better and also start working towards RW2.0 support. * update changelog * Copy integration test from POC From #10432 Signed-off-by: György Krajcsovits <[email protected]>
fix integration test fix expdiff better marking of debug stuff in timeseries Signed-off-by: György Krajcsovits <[email protected]>
krajorama
added a commit
that referenced
this pull request
Jan 16, 2025
As far as I can tell we don't cast Prometheus Remote Write 1.0 histogram into mimirpb.Histogram anymore. On the flip-side this test fails in #10432 because we're going to store RW 2.0 extra field in mimirpb.Histogram. Related to #9072 Signed-off-by: György Krajcsovits <[email protected]>
As far as I can tell we don't cast Prometheus Remote Write 1.0 histogram into mimirpb.Histogram anymore. On the flip-side this test fails in #10432 because we're going to store RW 2.0 extra field in mimirpb.Histogram. Related to #9072 Signed-off-by: György Krajcsovits <[email protected]>
krajorama
added a commit
that referenced
this pull request
Jan 17, 2025
As far as I can tell we don't cast Prometheus Remote Write 1.0 histogram into mimirpb.Histogram anymore. On the flip-side this test fails in #10432 because we're going to store RW 2.0 extra field in mimirpb.Histogram. Related to #9072 Signed-off-by: György Krajcsovits <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What this PR does
Implements conversion of Remote Write 2.0 into the internal mimirpb.WriteRequest.
Not optimized.
Which issue(s) this PR fixes or relates to
Related to #9072
Depends on for testing:
#10425
prometheus/prometheus#15825 (merged)
prometheus/prometheus#15829 (merged)
prometheus/prometheus#15832
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]
.about-versioning.md
updated with experimental features.