-
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
*: Upgrade Prometheus to v2.39.0 #5767
*: Upgrade Prometheus to v2.39.0 #5767
Conversation
Repro for thanos-io#5600. Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>
Update prometheus dependency. Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>
Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>
Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>
f376340
to
507dcd8
Compare
Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com>
507dcd8
to
49978ca
Compare
Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com>
Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com>
Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com>
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.
LGTM on green.
A little bit concern on the new TSDB change on the compactor side, but as long as the tests are passing then we can give it a try
Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com>
@yeya24 sure. I think the commit I just pushed should fix the e2e tests failure. Let's wait and see. What is the change in TSDB that worries you on the compactor side? Maybe we can try to write an e2e test for it (in this PR or a follow up). |
Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com>
The OOO feature introduces a new chunk encoding. For blocks generated by Thanos I think that's fine since we don't enable this feature. But for blocks generated by Prometheus I am not sure if it will contain OOO chunks. I think I need to read the OOO source code to see how it works. If OOO chunks only exist in memory (head block) then seems we should be safe. |
Some |
Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com>
Hm, shouldn't OOO chunks be explicitly enabled? Or does Prometheus always create them? |
Only one unit test left to fix 💪 |
Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com>
After all the hacking I did today, I learned that OOO has to be explicitly enabled otherwise the OOO data is refused. I could be wrong though, please peer review my statement. 🤔 😂 |
@yeya24 @fpetkovski we are ✅ on all checks. PTAL whenever you have some time. 🙇 |
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.
LGTM, thanks!
@@ -82,7 +82,6 @@ func registerReceive(app *extkingpin.App) { | |||
RetentionDuration: int64(time.Duration(*conf.retention) / time.Millisecond), | |||
NoLockfile: conf.noLockFile, | |||
WALCompression: conf.walCompression, | |||
AllowOverlappingBlocks: conf.tsdbAllowOverlappingBlocks, |
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.
I am wondering if we make overlapping blocks a default at the TSDB level, on the compactor side should we also do the same? Right now it is not enabled by default, we can follow up it on a separate pr though.
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.
I think it makes sense to be consistent and also enable it by default in the compactor.
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.
Amazing, thanks!
@@ -37,6 +37,7 @@ We use *breaking :warning:* to mark changes that are not backward compatible (re | |||
- [#5641](https://github.com/thanos-io/thanos/pull/5641) Query: Inject unshardable le label in query analyzer. | |||
- [#5685](https://github.com/thanos-io/thanos/pull/5685) Receive: Make active/head series limiting configuration per tenant by adding it to new limiting config. | |||
- [#5411](https://github.com/thanos-io/thanos/pull/5411) Tracing: Change Jaeger exporter from OpenTracing to OpenTelemetry. *Options `RPC Metrics`, `Gen128Bit` and `Disabled` are now deprecated and won't have any effect when set :warning:.* | |||
- [#5767](https://github.com/thanos-io/thanos/pull/5767) *: Upgrade Prometheus to v2.39.0. |
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.
Anything notable to mention? 🤔
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.
Besides the perf improvements notables, I think the overlapping blocks being on by default is also notable.
That's correct. |
* e2e: add tests for pushed down subqueries Repro for thanos-io#5600. Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com> * *: update dependency Update prometheus dependency. Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com> * test: fix test Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com> * Upgrade Prometheus to v2.39.0 Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com> * Fix UnRegisterer to work well when it's wrapped Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com> * Update CHANGELOG Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com> * Fix UnRegisterer creation Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com> * Fix e2e env name to comply with new rules Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com> * Remove query pushdown test case Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com> * Fix compactor relabeling after Prometheus upgrade Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com> * Fix tsdb.NewHead call after wbl addition Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com> Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com> Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com> Co-authored-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com> Signed-off-by: utukj <utukphd@gmail.com>
Signed-off-by: Douglas Camata 159076+douglascamata@users.noreply.github.com
Changes
Almost the entirety of this work was started by @GiedriusS at #5602. This PR was opened with his consent, as he's on vacations.
Verification