-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Update prometheus to 0.42.0 #6119
Conversation
Signed-off-by: Filip Petkovski <filip.petkovsky@gmail.com>
a277721
to
9ef9a9e
Compare
Signed-off-by: Filip Petkovski <filip.petkovsky@gmail.com>
341524a
to
217f5d0
Compare
7026a17
to
3c704dc
Compare
Signed-off-by: Filip Petkovski <filip.petkovsky@gmail.com>
e8bd049
to
d44ce1a
Compare
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.
As far as I understand the breaking changes, this is looking good 👍
pkg/query/iter.go
Outdated
@@ -159,7 +159,7 @@ func (s *chunkSeries) Labels() labels.Labels { | |||
return s.lset | |||
} | |||
|
|||
func (s *chunkSeries) Iterator() chunkenc.Iterator { | |||
func (s *chunkSeries) Iterator(iterator chunkenc.Iterator) chunkenc.Iterator { |
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.
Nit: since we're not reusing the iterators, I'd either use unnamed parameter everywhere or preferably _ chunkenc.Iterator
to indicate it is unused
Signed-off-by: Filip Petkovski <filip.petkovsky@gmail.com>
bd23899
to
ad69820
Compare
* Update prometheus to 0.42.0 Signed-off-by: Filip Petkovski <filip.petkovsky@gmail.com> * Change type in e2e tests Signed-off-by: Filip Petkovski <filip.petkovsky@gmail.com> * Fix lint Signed-off-by: Filip Petkovski <filip.petkovsky@gmail.com> * Do not reuse any chunk iterators Signed-off-by: Filip Petkovski <filip.petkovsky@gmail.com> * Make chunkenc.Iterator an unnamed parameter Signed-off-by: Filip Petkovski <filip.petkovsky@gmail.com> --------- Signed-off-by: Filip Petkovski <filip.petkovsky@gmail.com>
* Update prometheus to 0.42.0 Signed-off-by: Filip Petkovski <filip.petkovsky@gmail.com> * Change type in e2e tests Signed-off-by: Filip Petkovski <filip.petkovsky@gmail.com> * Fix lint Signed-off-by: Filip Petkovski <filip.petkovsky@gmail.com> * Do not reuse any chunk iterators Signed-off-by: Filip Petkovski <filip.petkovsky@gmail.com> * Make chunkenc.Iterator an unnamed parameter Signed-off-by: Filip Petkovski <filip.petkovsky@gmail.com> --------- Signed-off-by: Filip Petkovski <filip.petkovsky@gmail.com>
This commit updates the Prometheus dependency to 0.42.0.
There are (yet again) three breaking changes which require updates in many places:
chunkenc.Iterator
interface now allows object reuse by passing an existing iterator instance.ScratchBuilder
interface for mutations.relabel.Process
function now returns a secondkeep
argument.Signed-off-by: Filip Petkovski filip.petkovsky@gmail.com
Changes
Verification