Upgrade to Prometheus v3.2.1 #6629
Merged
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:
Update Prometheus version to v3.2.1.
Prometheus changed the default validation scheme to UTF8Validation. In this PR, I added an init() to set the default to
LegacyValidation. Theinit()is added to a new package and imported in a few places. Initially I tried just adding aninti()inCortex.gobut it is not used in tests. If there is a better way to handle this, please suggest.Fix for Ruler does not consistently restore
forstate #6465 is included in this PR as wellThis PR introduced
IgnoreUnkownFieldsin rule parsing. Currently this is hardcoded to false to mimic existing behaviorChanges needed to adapt to scrape: Fix metadata in WAL not working for histograms and summaries. prometheus/prometheus#15832
Which issue(s) this PR fixes:
Fixes #
Checklist
CHANGELOG.mdupdated - the order of entries should be[CHANGE],[FEATURE],[ENHANCEMENT],[BUGFIX]