-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Update Prometheus to v2.19.2 #1301
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
Conversation
| # Exclude some staticcheck messages | ||
| - linters: | ||
| - staticcheck | ||
| # See https://github.com/golang/protobuf/issues/1077 |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extracted to #1308 since it's not related to Prometheus itself.
| // OcaStore is an interface combines io.Closer and prometheus' scrape.Appendable | ||
| type OcaStore interface { | ||
| scrape.Appendable | ||
| storage.Appendable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This interface change required manual implementation changes below.
|
|
||
| // returning an error from this method can cause the whole appending transaction to be aborted and fail | ||
| func (tr *transaction) AddFast(ls labels.Labels, _ uint64, t int64, v float64) error { | ||
| // always returns 0 to disable label caching |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See https://github.com/prometheus/prometheus/blob/v2.19.2/storage/interface.go#L134
Returning 0 should lead to AddFast never being used.
|
@nilebox is this still WIP or ready for review? |
|
@nilebox can you work on this? |
|
@bogdandrutu yep, I will update this PR and see if there are any other problems blocking it. |
Codecov Report
@@ Coverage Diff @@
## master #1301 +/- ##
=======================================
Coverage 90.28% 90.28%
=======================================
Files 232 232
Lines 16396 16396
=======================================
Hits 14803 14803
- Misses 1136 1137 +1
+ Partials 457 456 -1
Continue to review full report at Codecov.
|
…etry#1301) Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint) from 1.32.0 to 1.32.1. - [Release notes](https://github.com/golangci/golangci-lint/releases) - [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md) - [Commits](golangci/golangci-lint@v1.32.0...v1.32.1) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…elemetry#1301) Signed-off-by: owent <[email protected]>
…rkaround null issue (open-telemetry#1301) * Allow alternate blank config * Fix template for older helm versions * remove debug template * Update values.yaml Co-authored-by: Dmitrii Anoshin <[email protected]> * bump version --------- Co-authored-by: Dmitrii Anoshin <[email protected]> Co-authored-by: Jared Tan <[email protected]>
Description:
Update prometheus to v2.19.2
Link to tracking Issue: Fixes #1124
Testing: Existing tests should cover potential regression
Documentation: -