Skip to content

Conversation

@MichaHoffmann
Copy link
Contributor

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

Verification

Signed-off-by: Michael Hoffmann <mhoffmann@cloudflare.com>
@MichaHoffmann MichaHoffmann force-pushed the mhoffmann/mark-0.38-in-progress branch from 1e37baa to 28a657d Compare March 25, 2025 12:24
@MichaHoffmann MichaHoffmann merged commit da855a1 into main Mar 25, 2025
22 checks passed
trouaux pushed a commit to trouaux/thanos that referenced this pull request May 28, 2025
Signed-off-by: Michael Hoffmann <mhoffmann@cloudflare.com>
Signed-off-by: trouaux <t.rouaux@gmail.com>
trouaux pushed a commit to trouaux/thanos that referenced this pull request May 28, 2025
Signed-off-by: Michael Hoffmann <mhoffmann@cloudflare.com>
Signed-off-by: trouaux <t.rouaux@gmail.com>
trouaux pushed a commit to trouaux/thanos that referenced this pull request May 28, 2025
Signed-off-by: Michael Hoffmann <mhoffmann@cloudflare.com>
Signed-off-by: trouaux <t.rouaux@gmail.com>
openshift-merge-bot bot pushed a commit to stolostron/thanos that referenced this pull request Aug 20, 2025
* Query-frontend: Fix connection to Redis with TLS.
Issue: https://github.com/thanos-io/thanos/issues/7672

Signed-off-by: didukh86 <didukh86@gmail.com>
Signed-off-by: didukh86 <78904472+didukh86@users.noreply.github.com>
Signed-off-by: didukh86 <didukh86@gmail.com>
Signed-off-by: Taras Didukh <taras.didukh@advancedmd.com>

* Add record to the  changelog

Signed-off-by: Taras Didukh <taras.didukh@advancedmd.com>

* query: queryable is not respecting limits (#7679)

Signed-off-by: Michael Hoffmann <mhoffm@posteo.de>

* build(deps): bump go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp (#7666)

Bumps [go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp](https://github.com/open-telemetry/opentelemetry-go) from 1.27.0 to 1.29.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.27.0...v1.29.0)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Taras Didukh <taras.didukh@advancedmd.com>

* website: max-height for version-picker dropdown (#7642)

Signed-off-by: milinddethe15 <milinddethe15@gmail.com>
Signed-off-by: Taras Didukh <taras.didukh@advancedmd.com>

* build(deps): bump github/codeql-action from 3.26.2 to 3.26.5 (#7667)

Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.26.2 to 3.26.5.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/429e1977040da7a23b6822b13c129cd1ba93dbb2...2c779ab0d087cd7fe7b826087247c2c81f27bfa6)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Taras Didukh <taras.didukh@advancedmd.com>

* Bump golang.org/x/time from 0.5.0 to 0.6.0 (#7601)

Bumps [golang.org/x/time](https://github.com/golang/time) from 0.5.0 to 0.6.0.
- [Commits](https://github.com/golang/time/compare/v0.5.0...v0.6.0)

---
updated-dependencies:
- dependency-name: golang.org/x/time
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Taras Didukh <taras.didukh@advancedmd.com>

* Remove empty lines

Signed-off-by: Taras Didukh <didukh86@gmail.com>

* receive: port expanded postings cache from Cortex (#7914)

Port expanded postings cache from Cortex. Huge kudos to @alanprot for
the implementation. I added a TODO item to convert our whole internal
caching infra to be promise based.

Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>

* receive/expandedpostingscache: fix race (#7937)

Porting https://github.com/cortexproject/cortex/pull/6369 to our code
base. Add test that fails without the fix.

Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>

* receive: Allow specifying a custom gRPC service config via flag (#7907)

Signed-off-by: Philip Gough <philip.p.gough@gmail.com>

* remove redundant redis config (#7942)

Signed-off-by: Helen Tseng <bluesky6529@gmail.com>

* Capnp: Use segment from existing message (#7945)

* Capnp: Use segment from existing message

Signed-off-by: Filip Petkovski <filip.petkovsky@gmail.com>

* Downgrade capnproto

Signed-off-by: Filip Petkovski <filip.petkovsky@gmail.com>

---------

Signed-off-by: Filip Petkovski <filip.petkovsky@gmail.com>

* Fix ver

Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com>

* [Receive] Fix race condition when adding multiple new tenants at once (#7941)

* [Receive] fix race condition

Signed-off-by: Yi Jin <yi.jin@databricks.com>

* add a change log

Signed-off-by: Yi Jin <yi.jin@databricks.com>

* memorize tsdb local clients without race condition

Signed-off-by: Yi Jin <yi.jin@databricks.com>

* fix data race in testing with some concurrent safe helper functions

Signed-off-by: Yi Jin <yi.jin@databricks.com>

* address comments

Signed-off-by: Yi Jin <yi.jin@databricks.com>

---------

Signed-off-by: Yi Jin <yi.jin@databricks.com>

* Update promql-engine for subquery fix (#7953)

Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com>

* Sidecar: Ensure limit param is positive for compatibility with older Prometheus (#7954)

Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com>

* Fix potential deadlock in hedging request (#7962)

Signed-off-by: kade.lee <tjdwls1201@gmail.com>

* Mark posting group lazy if it has a lot of keys (#7961)

* mark posting group lazy if it has a lot of add keys

Signed-off-by: Ben Ye <benye@amazon.com>

* update docs

Signed-off-by: Ben Ye <benye@amazon.com>

* rename labels

Signed-off-by: Ben Ye <benye@amazon.com>

* changelog

Signed-off-by: Ben Ye <benye@amazon.com>

* change to use max key series ratio

Signed-off-by: Ben Ye <benye@amazon.com>

* update docs

Signed-off-by: Ben Ye <benye@amazon.com>

* mention metrics

Signed-off-by: Ben Ye <benye@amazon.com>

* update docs

Signed-off-by: Ben Ye <benye@amazon.com>

---------

Signed-off-by: Ben Ye <benye@amazon.com>

* sidecar: fix limit mintime (#7970)

Signed-off-by: Michael Hoffmann <mhoffm@posteo.de>

* store gateway: fix merge fetched postings with lazy postings (#7979)

Signed-off-by: Ben Ye <benye@amazon.com>

* api: bump promql engine and fix fallout (#8000)

* bump to new promql-engine version and fix fallout
* new promql-engine makes it possible to provide more options at runtime

Signed-off-by: Michael Hoffmann <mhoffmann@cloudflare.com>
Co-authored-by: Michael Hoffmann <mhoffmann@cloudflare.com>

* receive: fix maxBufferedResponses channel size to avoid deadlock (#7978)

* Fix maxBufferedResponses channel size to avoid deadlock

Fixes #7977

Signed-off-by: Remi Vichery <remi@alkira.com>

* Add changelog entry

Signed-off-by: Remi Vichery <remi@alkira.com>

* adjust line numbers in docs/components/receive.md to match updated code

Signed-off-by: Remi Vichery <remi@alkira.com>

---------

Signed-off-by: Remi Vichery <remi@alkira.com>

* .github: run e2e tests on newer ubuntu

I cannot reproduce chromedp panics locally so trying to see if a newer
Ubuntu version would help.

Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>

* Forcing headless and making sure we can run it before creating the context for testing

Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>

* query: distributed engine - allow querying overlapping intervals (commit signed) (#8003)

* chore: add possibility to run individual e2e tests

Signed-off-by: Abel Simon <abelsimon48@gmail.com>

* chore: add metric pointer for too old sample logs

Signed-off-by: Abel Simon <abelsimon48@gmail.com>

* feat: add flag for distributed queries with overlapping intervals

Signed-off-by: Abel Simon <abelsimon48@gmail.com>

* chore: add failing overlapping interval test

Signed-off-by: Abel Simon <abelsimon48@gmail.com>

* chore: fix base branch diff

Signed-off-by: Abel Simon <abelsimon48@gmail.com>

---------

Signed-off-by: Abel Simon <abelsimon48@gmail.com>

* Add labels to rules UI (#8009)

Signed-off-by: Coleen Iona Quadros <coleen.quadros27@gmail.com>

* build(deps): bump golang.org/x/crypto from 0.28.0 to 0.31.0

Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.28.0 to 0.31.0.
- [Commits](https://github.com/golang/crypto/compare/v0.28.0...v0.31.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* *: replace `golang.org/x/exp` with standard library

These experimental packages are now available in the Go standard
library. Since we upgraded our minimum Go version to 1.23 in PR
https://github.com/thanos-io/thanos/pull/7796, we can replace them with
the standard library:

	1. golang.org/x/exp/slices -> slices [1]
	2. golang.org/x/exp/maps -> maps [2]
	3. golang.org/x/exp/rand -> math/rand/v2 [3]

[1]: https://go.dev/doc/go1.21#slices
[2]: https://go.dev/doc/go1.21#maps
[3]: https://go.dev/doc/go1.22#math_rand_v2

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>

* Tidy `go.mod` properly

Two sections in total: one for direct dependencies, and one for indirect
dependencies.

Reference: https://github.com/golang/go/issues/56471
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>

* *: replace `cespare/xxhash` with `cespare/xxhash/v2`

`github.com/cespare/xxhash/v2` is the latest version with bug fixes and
improvements.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>

* QFE: Fix @ modifier not being applied correctly on subqueries (#8016)

Signed-off-by: 🌲 Harry 🌊 John 🏔 <johrry@amazon.com>

* Bump devcontainer Dockerfile base image from go1.22 to go1.23 (#8031)

Signed-off-by: Pengyu Wang <hncswpy@gmail.com>

* Receiver: cache matchers for series calls (#7353)

* Receiver: cache matchers for series calls

We have tried caching matchers before with a time-based expiration cache, this time we are trying with LRU cache.

We saw some of our receivers busy with compiling regexes and with high CPU usage, similar to the profile of the benchmark I added here:

* Adding matcher cache for method `MatchersToPromMatchers` and a new version which uses the cache.
* The main change is in `matchesExternalLabels` function which now receives a cache instance.

adding matcher cache and refactor matchers

Co-authored-by: Andre Branchizio <andre.branchizio@shopify.com>

Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>

Using the cache in proxy and tsdb stores (only receiver)

Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>

fixing problem with deep equality

Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>

adding some docs

Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>

Adding benchmark

Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>

undo unecessary changes

Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>

Adjusting metric names

Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>

adding changelog

Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>

wiring changes to the receiver

Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>

Fixing linting

Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>

docs

Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>

* using singleflight to get or set items

Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>

* improve metrics

Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>

* Introduce interface for matchers cache

Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>

* fixing unit test

Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>

* adding changelog

Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>

* fixing benchmark

Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>

* moving matcher cache to storecache package

Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>

* Trying to make the cache more reusable introducing interface

Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>

Fixing problem with wrong initialization

Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>

Moving interface to storecache package

Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>

remove empty file and fix calls to constructor passing nil;

Signed-off-by: Pedro Tanaka <pedro.stanaka@gmail.com>

* Fix false entry on change log

Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>

* Removing default value for registry and rename test file

Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>

* Using fmt.Errf()

Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>

* Remove method that is not on interface anymore

Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>

* Remove duplicate get call

Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>

---------

Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>
Signed-off-by: Pedro Tanaka <pedro.stanaka@gmail.com>

* Updating x/net package (#8034)

Signed-off-by: Roberto O. Fernández Crisial <roberto.crisial@ip-192-168-0-7.ec2.internal>
Signed-off-by: Roberto O. Fernández Crisial <rofc@rofc.com.ar>

* add pool for expanded posting slice (#8035)

* add pool for expanded posting slice

Signed-off-by: Ben Ye <benye@amazon.com>

* check nil postings

Signed-off-by: Ben Ye <benye@amazon.com>

---------

Signed-off-by: Ben Ye <benye@amazon.com>

* receive: unhide tsdb.out-of-order.time-window and tsdb.out-of-order.cap-max (#8032)

* Unhide tsdb.out-of-order.time-window and tsdb.out-of-order.cap-max

Signed-off-by: milinddethe15 <milinddethe15@gmail.com>

* make docs

Signed-off-by: milinddethe15 <milinddethe15@gmail.com>

* make docs

Signed-off-by: milinddethe15 <milinddethe15@gmail.com>

---------

Signed-off-by: milinddethe15 <milinddethe15@gmail.com>

* build(deps): bump peter-evans/create-pull-request from 6.1.0 to 7.0.6 (#8028)

Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 6.1.0 to 7.0.6.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](https://github.com/peter-evans/create-pull-request/compare/c5a7806660adbe173f04e3e038b0ccdcd758773c...67ccf781d68cd99b580ae25a5c18a1cc84ffff1f)

---
updated-dependencies:
- dependency-name: peter-evans/create-pull-request
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* optimize store gateway bytes limiter reserve with type request (#8025)

Signed-off-by: Ben Ye <benye@amazon.com>

* Fix matcher cache (#8039)

* Fix matcher cache

Signed-off-by: alanprot <alanprot@gmail.com>

* Simplifying cache interface

Signed-off-by: alanprot <alanprot@gmail.com>

---------

Signed-off-by: alanprot <alanprot@gmail.com>

* Optimize sort keys by server in memcache client (#8026)

* optimize sort keys by server in memcache client

Signed-off-by: Ben Ye <benye@amazon.com>

* address comments

Signed-off-by: Ben Ye <benye@amazon.com>

* remove unused mockAddr

Signed-off-by: Ben Ye <benye@amazon.com>

---------

Signed-off-by: Ben Ye <benye@amazon.com>

* add block lifecycle callback (#8036)

Signed-off-by: Ben Ye <benye@amazon.com>

* Fix binary reader download duration histogram (#8017)

* fix binary reader download duration histogram

Signed-off-by: Ben Ye <benye@amazon.com>

* enable native histograms

Signed-off-by: Ben Ye <benye@amazon.com>

* changelog

Signed-off-by: Ben Ye <benye@amazon.com>

---------

Signed-off-by: Ben Ye <benye@amazon.com>

* Matcher cache/series (#8045)

* Add option to cache matcher on the get series call

Signed-off-by: alanprot <alanprot@gmail.com>

* Adding matcher cacheoption for the store gateway

Signed-off-by: alanprot <alanprot@gmail.com>

* lint/docs

Signed-off-by: alanprot <alanprot@gmail.com>

* change desc

Signed-off-by: alanprot <alanprot@gmail.com>

* change desc

Signed-off-by: alanprot <alanprot@gmail.com>

* change desc

Signed-off-by: alanprot <alanprot@gmail.com>

* fix test

Signed-off-by: alanprot <alanprot@gmail.com>

* Caching only regex matchers

Signed-off-by: alanprot <alanprot@gmail.com>

* changelog

Signed-off-by: alanprot <alanprot@gmail.com>

---------

Signed-off-by: alanprot <alanprot@gmail.com>

* query: fix panic when selecting non-default engine (#8050)

Fix duplicate metrics registration when selecting non-default engine

Signed-off-by: Michael Hoffmann <mhoffmann@cloudflare.com>
Co-authored-by: Michael Hoffmann <mhoffmann@cloudflare.com>

* pkg/cacheutil: Async op fix (#8044)

* Add test for AsyncOperationProcessor stop() behavior

The existing implementation sometimes drops existing operations that are
still on the queue when .stop() is called.

If multiple communications in a select statement can proceed, one is
chosen pseudo-randomly: https://go.dev/ref/spec#Select_statements

This means that sometimes a processor worker will process a remaining
operation, and sometimes it won't.

Signed-off-by: Daniel Sabsay <sabsay@adobe.com>

* Fix async_op test regarding stop() behavior

Signed-off-by: Daniel Sabsay <sabsay@adobe.com>

* add header to test file

Signed-off-by: Daniel Sabsay <sabsay@adobe.com>

---------

Signed-off-by: Daniel Sabsay <sabsay@adobe.com>
Co-authored-by: Daniel Sabsay <sabsay@adobe.com>

* make lazy posting series match ratio configurable (#8049)

Signed-off-by: Ben Ye <benye@amazon.com>

* QFE: fixing stats middleware when cache is enabled (#8046)

* QFE: fixing stats middleware when cache is enabled

Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>

* Clarify strange config parameter

Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>

---------

Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>

* [FEATURE] adding otlp endpoint (#7996)

* [FEATURE] adding otlp endpoint

Signed-off-by: Nicolas Takashi <nicolas.tcs@hotmail.com>

* [FEATURE] adding otlp endpoint

Signed-off-by: Nicolas Takashi <nicolas.tcs@hotmail.com>

* [FEATURE] adding otlp endpoint

Signed-off-by: Nicolas Takashi <nicolas.tcs@hotmail.com>

* [FIX] e2e tests for otlp receiver

Signed-off-by: Nicolas Takashi <nicolas.tcs@hotmail.com>

* [CHORE] adding otlp flags

Signed-off-by: Nicolas Takashi <nicolas.tcs@hotmail.com>

* [DOC] updating docs

Signed-off-by: Nicolas Takashi <nicolas.tcs@hotmail.com>

* [CHORE] copying otlptranslator

Signed-off-by: Nicolas Takashi <nicolas.tcs@hotmail.com>

* [CHORE] copying otlptranslator tests

Signed-off-by: Nicolas Takashi <nicolas.tcs@hotmail.com>

* [CHORE] copying otlptranslator tests

Signed-off-by: Nicolas Takashi <nicolas.tcs@hotmail.com>

* [CHORE] copying otlptranslator tests

Signed-off-by: Nicolas Takashi <nicolas.tcs@hotmail.com>

* [FIX] lint issues

Signed-off-by: Nicolas Takashi <nicolas.tcs@hotmail.com>

* [FIX] lint issues

Signed-off-by: Nicolas Takashi <nicolas.tcs@hotmail.com>

* [FIX] lint issues

Signed-off-by: Nicolas Takashi <nicolas.tcs@hotmail.com>

* [CHORE] using multi errors

Signed-off-by: Nicolas Takashi <nicolas.tcs@hotmail.com>

* [FIX] span naming convention

Signed-off-by: Nicolas Takashi <nicolas.tcs@hotmail.com>

* [TEST] adding handler otlp unit test

Signed-off-by: Nicolas Takashi <nicolas.tcs@hotmail.com>

* [TEST] upgrade collector version

Signed-off-by: Nicolas Takashi <nicolas.tcs@hotmail.com>

* [FIX] golang lint

Signed-off-by: Nicolas Takashi <nicolas.tcs@hotmail.com>

* [CHORE] adding allow size bytes limit gate

Signed-off-by: Nicolas Takashi <nicolas.tcs@hotmail.com>

* [FIX] unit test otlp endpoint

Signed-off-by: Nicolas Takashi <nicolas.tcs@hotmail.com>

* Apply suggestions from code review

Co-authored-by: Saswata Mukherjee <saswataminsta@yahoo.com>
Signed-off-by: Nicolas Takashi <nicolas.tcs@hotmail.com>

* [FIX] unit test otlp endpoint

Signed-off-by: Nicolas Takashi <nicolas.tcs@hotmail.com>

* [DOC] updating docs

Signed-off-by: Nicolas Takashi <nicolas.tcs@hotmail.com>

* [CHORE] applying pr comments

Signed-off-by: Nicolas Takashi <nicolas.tcs@hotmail.com>

* Update pkg/receive/handler_otlp.go

Co-authored-by: Matej Gera <38492574+matej-g@users.noreply.github.com>
Signed-off-by: Nicolas Takashi <nicolas.tcs@hotmail.com>

* Update cmd/thanos/receive.go

Co-authored-by: Matej Gera <38492574+matej-g@users.noreply.github.com>
Signed-off-by: Nicolas Takashi <nicolas.tcs@hotmail.com>

* [DOCS] updating

Signed-off-by: Nicolas Takashi <nicolas.tcs@hotmail.com>

* [FIX] go mod lint issues

Signed-off-by: Nicolas Takashi <nicolas.tcs@hotmail.com>

* Fix TestFromMetrics error comparison

Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com>

---------

Signed-off-by: Nicolas Takashi <nicolas.tcs@hotmail.com>
Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com>
Co-authored-by: Saswata Mukherjee <saswataminsta@yahoo.com>
Co-authored-by: Matej Gera <38492574+matej-g@users.noreply.github.com>

* query, rule: make endpoint discovery dynamically reloadable (#7890)

* Removed previously deprecated and hidden flags to configure endpoints ( --rule, --target, ...)
* Added new flags --endpoint.sd-config, --endpoint-sd-config-reload-interval to configure a dynamic SD file
* Moved endpoint set construction into cmd/thanos/endpointset.go for a little cleanup
* Renamed "thanos_(querier/ruler)_duplicated_store_addresses_total" to
  "thanos_(querier/ruler)_duplicated_endpoint_addresses_total"

The new config makes it possible to also set "strict" and "group" flags on the endpoint instead
of only their addresses, making it possible to have file based service discovery for endpoint groups too.

Signed-off-by: Michael Hoffmann <mhoffm@posteo.de>
Signed-off-by: Michael Hoffmann <mhoffmann@cloudflare.com>

* skip match label values for certain matchers (#8084)

Signed-off-by: yeya24 <benye@amazon.com>

* Extend posting-group-max-key-series-ratio for add all posting group (#8083)

Signed-off-by: yeya24 <benye@amazon.com>

* Add a func to convert go-kit log to slog (#7969)

Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>

* fix: add POST into allowed CORS methods header (#8091)

Signed-off-by: Célian Garcia <celian.garcia@amadeus.com>

* Fix deadlock in metadata fetcher (#8092)

This is a fix for a bug we encountered in our production deployment at
$WORK, where we experience Thanos Store to spontaneously stop refreshing
its metadata cache every time our (Ceph-based) object storage starts
rate-limiting Thanos's requests too much. This causes the Store to
permanently stop discovering new blocks in the bucket, and keep trying
to access old, long-gone blocks (which have already been compacted and
removed), breaking subsequent queries to the Store and mandating its
manual restart. More details about the bug and the fix below.

Initially, the `GetActiveAndPartialBlockIDs` method spawns fixed number
of 64 goroutines to issue concurrent requests to a remote storage. Each
time the storage causes the `f.bkt.Exists` call to return an error, one
of goroutines exits returning said error, effectively reducing
concurrency of processing remaining block IDs in `metaChan`. While it's
not a big problem in case of one or two errors, it is entirely possible
that, in case of prolonged storage problems, all 64 goroutines quit,
resulting in `metaChan` filling up and blocking the `f.bkt.Iter`
iterator below. This causes the whole method to be stuck indefinitely,
even if the storage becomes fully operational again.

This commit fixes the issue by allowing the iterator to return as soon
as a single processing goroutine errors out, so that the method can
reliably finish, returning the error as intended. Additionally, the
processing goroutines are adjusted as well, to make them all quit early
without consuming remaining items in `metaChan`. While the latter is not
strictly necessary to fix this bug, it doesn't make sense to let any
remaining goroutines keep issuing requests to the storage if the method
is already bound to return nil result along with the first encountered
error.

Signed-off-by: Piotr Śliwka <psliwka@opera.com>

* store: lock around iterating over s.blocks (#8088)

Hold a lock around s.blocks when iterating over it. I have experienced a
case where a block had been added to a blockSet twice somehow and it
being somehow removed from s.blocks is the only way it could happen.
This is the only "bad" thing I've been able to spot.

Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>

* Update prometheus verison to v3.1.0 (#8090)

Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>

* build(deps): bump github.com/tjhop/slog-gokit from 0.1.2 to 0.1.3 (#8109)

Bumps [github.com/tjhop/slog-gokit](https://github.com/tjhop/slog-gokit) from 0.1.2 to 0.1.3.
- [Release notes](https://github.com/tjhop/slog-gokit/releases)
- [Changelog](https://github.com/tjhop/slog-gokit/blob/main/.goreleaser.yaml)
- [Commits](https://github.com/tjhop/slog-gokit/compare/v0.1.2...v0.1.3)

---
updated-dependencies:
- dependency-name: github.com/tjhop/slog-gokit
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* *:  bump Go to 1.24 (#8105)

* bump go version to newer 1.24

Signed-off-by: Saumyacodes-40 <saumyabshah90@gmail.com>

* update .go-version

Signed-off-by: Saumyacodes-40 <saumyabshah90@gmail.com>

* fix test failing, formatted string func now requires constant string literal

Signed-off-by: Saumyacodes-40 <saumyabshah90@gmail.com>

* test: point faillint to thanos-community/faillint

Signed-off-by: Saumyacodes-40 <saumyabshah90@gmail.com>

* fix commit hash

Signed-off-by: Saumyacodes-40 <saumyabshah90@gmail.com>

* use branch instead of hash

Signed-off-by: Saumyacodes-40 <saumyabshah90@gmail.com>

* test: update faillint.mod/sum

Signed-off-by: Saumyacodes-40 <saumyabshah90@gmail.com>

* bump golangci-lint

Signed-off-by: Saumyacodes-40 <saumyabshah90@gmail.com>

* update .bingo/faillint.mod based on new deps upgrade

Signed-off-by: Saumyacodes-40 <saumyabshah90@gmail.com>

* address required changes

Signed-off-by: Saumyacodes-40 <saumyabshah90@gmail.com>

---------

Signed-off-by: Saumyacodes-40 <saumyabshah90@gmail.com>

* Remove quote from replica label. (#8075)

Signed-off-by: Marta <me@marta.nz>

* Query: dynamic endpointgroups are allowed (#8113)

This PR fixes a bug where dynamic endpoint groups are silently ignored.

Signed-off-by: Michael Hoffmann <mhoffmann@cloudflare.com>
Co-authored-by: Michael Hoffmann <mhoffmann@cloudflare.com>

* [issue-8106] fix tenant hashring glob with multiple match patterns (#8107)

Signed-off-by: Yi Jin <yi.jin@databricks.com>

* build(deps): bump go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp (#8067)

Bumps [go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp](https://github.com/open-telemetry/opentelemetry-go) from 1.29.0 to 1.34.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.29.0...v1.34.0)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* query : add missing xincrease/xrate aggregation (#8120)

* Infer max query downsample resolution from promql query (#7012)

* Adjust max_source_resolution automatically based promql queries

Signed-off-by: Ben Ye <benye@amazon.com>

* fix data race

Signed-off-by: yeya24 <benye@amazon.com>

---------

Signed-off-by: Ben Ye <benye@amazon.com>
Signed-off-by: yeya24 <benye@amazon.com>

* Optimize wildcard matchers for .* and .+ (#8131)

* optimize wildcard matchers for .* and .+

Signed-off-by: yeya24 <benye@amazon.com>

* add changelog

Signed-off-by: yeya24 <benye@amazon.com>

---------

Signed-off-by: yeya24 <benye@amazon.com>

* Query: bump promql-engine (#8118)

Bumping PromQL engine, fixing fallback fallout.

Signed-off-by: Michael Hoffmann <mhoffmann@cloudflare.com>
Co-authored-by: Michael Hoffmann <mhoffmann@cloudflare.com>

* build(deps): bump actions/cache from 4.0.2 to 4.2.1 (#8122)

Bumps [actions/cache](https://github.com/actions/cache) from 4.0.2 to 4.2.1.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/0c45773b623bea8c8e75f6c82b208c3cf94ea4f9...0c907a75c2c80ebcb7f088228285e798b750cf8f)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump peter-evans/create-pull-request from 7.0.6 to 7.0.7 (#8123)

Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 7.0.6 to 7.0.7.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](https://github.com/peter-evans/create-pull-request/compare/67ccf781d68cd99b580ae25a5c18a1cc84ffff1f...dd2324fc52d5d43c699a5636bcf19fceaa70c284)

---
updated-dependencies:
- dependency-name: peter-evans/create-pull-request
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* compact: implement native histogram downsampling (#8110)

* test/e2e: add native histogram downsampling test case

Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>

* downsample: port other PR

Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>

* compact: fix after review

Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>

---------

Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>

* Bump common+client_golang to deal with utf-8 (#8134)

* Bump common+client_golang to deal with utf-8

Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com>

* Fix+Add tests

Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com>

* Bump to 1.21

Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com>

---------

Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com>

* Query: bump promql-engine, fix fallout for distributed mode (#8135)

This PR bumps the thanos promql-engine repository, fixes the fallout and
makes distributed mode respect the user requested partial response
setting.

Signed-off-by: Michael Hoffmann <mhoffmann@cloudflare.com>

* build(deps): bump go.opentelemetry.io/otel/sdk from 1.34.0 to 1.35.0 (#8148)

Bumps [go.opentelemetry.io/otel/sdk](https://github.com/open-telemetry/opentelemetry-go) from 1.34.0 to 1.35.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.34.0...v1.35.0)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel/sdk
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* query: Support chain deduplication algorithm (#7808)

Signed-off-by: Michał Mazur <mmazur.box@gmail.com>

* rule: Add support for query offset (#8158)

Support Prometheus rule manager upstream "query offset" feature.
* Add support for a default rule query offset via command flag.
* Add per rule group query_offset support.

Fixes: https://github.com/thanos-io/thanos/issues/7596

Signed-off-by: SuperQ <superq@gmail.com>

* update: interactive tests to update non-supported store flags to endpoint in querier (#8157)

Signed-off-by: Saumya Shah <saumyabshah90@gmail.com>

* e2e: use prom 3 (#8165)

Signed-off-by: Michael Hoffmann <mhoffmann@cloudflare.com>

* Changelog: mark 0.38 as in-progress (#8173)

Signed-off-by: Michael Hoffmann <mhoffmann@cloudflare.com>

* Query: fix endpointset setup (#8175)

This commit fixes an issue where we add non-strict, non-group endpoints
to the endpointset twice, once with resolved addresses from the dns
provider and once with its dns prefix.

Signed-off-by: Michael Hoffmann <mhoffmann@cloudflare.com>

* deps: bump promql-engine (#8181)

Signed-off-by: Michael Hoffmann <mhoffmann@cloudflare.com>

* merge release 0.38.0 to main (#8186)

* Changelog: cut release 0.38-rc.0 (#8174)

Signed-off-by: Michael Hoffmann <mhoffmann@cloudflare.com>

* Changelog: cut release 0.38.0-rc.1 (#8180)

* Query: fix endpointset setup

This commit fixes an issue where we add non-strict, non-group endpoints
to the endpointset twice, once with resolved addresses from the dns
provider and once with its dns prefix.

Signed-off-by: Michael Hoffmann <mhoffmann@cloudflare.com>

* deps: bump promql-engine (#8181)

Signed-off-by: Michael Hoffmann <mhoffmann@cloudflare.com>

* Changelog: cut release 0.38-rc.1

Signed-off-by: Michael Hoffmann <mhoffmann@cloudflare.com>

---------

Signed-off-by: Michael Hoffmann <mhoffmann@cloudflare.com>

* Changelog: cut release 0.38 (#8185)

Signed-off-by: Michael Hoffmann <mhoffmann@cloudflare.com>

---------

Signed-off-by: Michael Hoffmann <mhoffmann@cloudflare.com>

* fix changelog markdown. (#8190)

Signed-off-by: naohiroo <naohiro.dev@gmail.com>

* Sidecar: increase default prometheus timeout (#8192)

Adjust the default get-config timeout to match the default get-config
interval.

Signed-off-by: Michael Hoffmann <mhoffmann@cloudflare.com>

* Unhide tsdb.enable-native-histograms flag in receive (#8202)

Signed-off-by: Aaron Walker <aaron@vcra.io>

* Query: fix partial response for distributed instant query (#8211)

This commit fixes a typo in partial response handling for distributed
instant queries.

Signed-off-by: Michael Hoffmann <mhoffmann@cloudflare.com>

* build(deps): bump github.com/golang-jwt/jwt/v5 from 5.2.1 to 5.2.2 (#8164)

Bumps [github.com/golang-jwt/jwt/v5](https://github.com/golang-jwt/jwt) from 5.2.1 to 5.2.2.
- [Release notes](https://github.com/golang-jwt/jwt/releases)
- [Changelog](https://github.com/golang-jwt/jwt/blob/main/VERSION_HISTORY.md)
- [Commits](https://github.com/golang-jwt/jwt/compare/v5.2.1...v5.2.2)

---
updated-dependencies:
- dependency-name: github.com/golang-jwt/jwt/v5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix Pull iter race between next() and stop()

Signed-off-by: Yuchen Wang <yuchen.wang@databricks.com>

* add changelog

Signed-off-by: Yuchen Wang <yuchen.wang@databricks.com>

* add unit test

Signed-off-by: Yuchen Wang <yuchen.wang@databricks.com>

* fix unit test

Signed-off-by: Yuchen Wang <yuchen.wang@databricks.com>

* update changelog

Signed-off-by: Yuchen Wang <yuchen.wang@databricks.com>

* add comments

Signed-off-by: Yuchen Wang <yuchen.wang@databricks.com>

* simplify unit test

Signed-off-by: Yuchen Wang <yuchen.wang@databricks.com>

* Update query.md documentation where example uses --query.tenant-default-id flag instead of --query.default-tenant-id (#8210)

Signed-off-by: Andrew Reilly <adr@maas.ca>

* Receive: Ensure forward/replication metrics are incremented in err cases (#8212)

* Ensure forward/replication metrics are incremented in err cases

This commit ensures forward and replication metrics are incremented with
err labels.

This seemed to be missing, came across this whilst working on a
dashboard.

Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com>

* Add changelog

Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com>

---------

Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com>

* receive: remove Get() method from hashring (#8226)

Get() is equivalent to GetN(1) so remove it. It's not used.

Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>

* tools: Extend bucket ls options (#8225)

* tools: Extend bucket ls command with min and max time, selector config and timeout options

Signed-off-by: Philip Gough <philip.p.gough@gmail.com>

* make: docs

Signed-off-by: Philip Gough <philip.p.gough@gmail.com>

Update cmd/thanos/tools_bucket.go

Co-authored-by: Saswata Mukherjee <saswataminsta@yahoo.com>
Signed-off-by: Philip Gough <pgough@redhat.com>

Update cmd/thanos/tools_bucket.go

Co-authored-by: Saswata Mukherjee <saswataminsta@yahoo.com>
Signed-off-by: Philip Gough <pgough@redhat.com>

---------

Signed-off-by: Philip Gough <philip.p.gough@gmail.com>
Signed-off-by: Philip Gough <pgough@redhat.com>
Co-authored-by: Saswata Mukherjee <saswataminsta@yahoo.com>

* UI: bump codemirror-promql dependency to latest version (#8230)

* bump codemirror-promql react dep to latest version

Signed-off-by: Saumya Shah <saumyabshah90@gmail.com>

* fix lint errors, build react-app

Signed-off-by: Saumya Shah <saumyabshah90@gmail.com>

* sync ui change of input expression

Signed-off-by: Saumya Shah <saumyabshah90@gmail.com>

* revert build files

Signed-off-by: Saumya Shah <saumyabshah90@gmail.com>

* build and update few warnings

Signed-off-by: Saumya Shah <saumyabshah90@gmail.com>

---------

Signed-off-by: Saumya Shah <saumyabshah90@gmail.com>

* reloader: disable some flaky tests (#8240)

Disabling some flaky tests.

Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>

* e2e: disable some more flaky tests (#8241)

These are flaky hence disable them.

Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>

* add otlp clientType (#8243)

Signed-off-by: dongjiang <dongjiang1989@126.com>

* test(tools_test.go/Test_CheckRules_Glob): take into consideration RO current dirs while (#8014)

changing files permissions.

The process may not have the needed permissions on the file (not the owner, not root or doesn't have the CAP_FOWNER capability)
to chmod it.
i

Signed-off-by: machine424 <ayoubmrini424@gmail.com>

* docs: volunteer as shepherd (#8249)

* docs: volunteer as shepherd

Release the next version in a few weeks.

Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>

* Fix formatting

Signed-off-by: Matej Gera <38492574+matej-g@users.noreply.github.com>

---------

Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>
Signed-off-by: Matej Gera <38492574+matej-g@users.noreply.github.com>
Co-authored-by: Matej Gera <38492574+matej-g@users.noreply.github.com>

* shipper: delete unused functions (#8260)

Signed-off-by: Michael Hoffmann <mhoffmann@cloudflare.com>

* feat(promu): add darwin/arm64 (#8263)

* feat(promu): add darwin/arm64

Signed-off-by: Ben Dronen <dronenb@users.noreply.github.com>

* fix(promu): just use darwin

Signed-off-by: Ben Dronen <dronenb@users.noreply.github.com>

---------

Signed-off-by: Ben Dronen <dronenb@users.noreply.github.com>

* receive: implement shuffle sharding (#8238)

See the documentation for details.

Closes #3821.

Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>

* docs: fix receive page (#8267)

Fix the docs after the most recent merge.

Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>

* Shipper: fix missing meta file errors (#8268)

- fix meta file read error check
- use proper logs for missing meta file vs. other read errors

Signed-off-by: Siavash Safi <siavash@cloudflare.com>

* query: fix query analyze to return appropriate results (#8262)

* call query analysis once querys being exec

Signed-off-by: Saumya Shah <saumyabshah90@gmail.com>

* refract the analyze logic

Signed-off-by: Saumya Shah <saumyabshah90@gmail.com>

* send not analyzable warnings instead of returning err

Signed-off-by: Saumya Shah <saumyabshah90@gmail.com>

* add seperate warnings in query non analyzable state based on engine

Signed-off-by: Saumya Shah <saumyabshah90@gmail.com>

---------

Signed-off-by: Saumya Shah <saumyabshah90@gmail.com>

* go.mod: mass update modules (#8277)

Maintenance task: let's update all modules.

Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>

* Force sync writes to meta.json in case of host crash (#8282)

* Force sync writes to meta.json in case of host crash

Signed-off-by: Anna Tran <trananna@amazon.com>

* Update CHANGELOG for fsync meta.json

Signed-off-by: Anna Tran <trananna@amazon.com>

---------

Signed-off-by: Anna Tran <trananna@amazon.com>

* query, query-frontend, ruler: Add support for flags to use promQL experimental functions & bump promql-engine (#8245)

* feat: add support for experimental functions, if enabled

Signed-off-by: Saumya Shah <saumyabshah90@gmail.com>

* fix tests

Signed-off-by: Saumya Shah <saumyabshah90@gmail.com>

* allow setting enable-feature flag in ruler

Signed-off-by: Saumya Shah <saumyabshah90@gmail.com>

* add flag info in docs

Signed-off-by: Saumya Shah <saumyabshah90@gmail.com>

* add CHANGELOG

Signed-off-by: Saumya Shah <saumyabshah90@gmail.com>

* add hidden flag to throw err on query fallback, red in tests ^_^

Signed-off-by: Saumya Shah <saumyabshah90@gmail.com>

* bump promql-engine to latest version/commit

Signed-off-by: Saumya Shah <saumyabshah90@gmail.com>

* format docs

Signed-off-by: Saumya Shah <saumyabshah90@gmail.com>

---------

Signed-off-by: Saumya Shah <saumyabshah90@gmail.com>

* fix: maintain expanded state based on current page (#8266)

* fix(sidebar): maintain expanded state based on current page

Signed-off-by: Naman-B-Parlecha <namanparlecha@gmail.com>

* fixing changelog

Signed-off-by: Naman-B-Parlecha <namanparlecha@gmail.com>

---------

Signed-off-by: Naman-B-Parlecha <namanparlecha@gmail.com>
Signed-off-by: Naman-Parlecha <namanparlecha@gmail.com>

* query: handle query.Analyze returning nil gracefully (#8199)

* fix: handle analyze returning nil gracefully

Signed-off-by: Saumya Shah <saumyabshah90@gmail.com>

* update CHANGELOG.md

Signed-off-by: Saumya Shah <saumyabshah90@gmail.com>

* fix format

Signed-off-by: Saumya Shah <saumyabshah90@gmail.com>

---------

Signed-off-by: Saumya Shah <saumyabshah90@gmail.com>

* store: Add --disable-admin-operations Flag to Store Gateway (#8284)

* fix(sidebar): maintain expanded state based on current page

Signed-off-by: Naman-B-Parlecha <namanparlecha@gmail.com>

* fixing changelog

Signed-off-by: Naman-B-Parlecha <namanparlecha@gmail.com>

* store: --disable-admin-operation flag

Signed-off-by: Naman-B-Parlecha <namanparlecha@gmail.com>

docs: Adding Flag details

Signed-off-by: Naman-B-Parlecha <namanparlecha@gmail.com>

updated changelog

refactor: changelog

Signed-off-by: Naman-Parlecha <namanparlecha@gmail.com>

---------

Signed-off-by: Naman-B-Parlecha <namanparlecha@gmail.com>
Signed-off-by: Naman-Parlecha <namanparlecha@gmail.com>

* shipper: allow shipper sync to skip corrupted blocks (#8259)

* Allow shipper sync to skip corrupted blocks

Signed-off-by: Daniel Deluiggi <ddeluigg@amazon.com>

* Move check to blockMetasFromOldest

Signed-off-by: Daniel Deluiggi <ddeluigg@amazon.com>

* Split metrics. Return error

Signed-off-by: Daniel Deluiggi <ddeluigg@amazon.com>

* fix test

Signed-off-by: Daniel Deluiggi <ddeluigg@amazon.com>

* Reorder shipper contructor variables

Signed-off-by: Daniel Deluiggi <ddeluigg@amazon.com>

* Use opts in shipper constructor

Signed-off-by: Daniel Deluiggi <ddeluigg@amazon.com>

* Fix typo

Signed-off-by: Daniel Deluiggi <ddeluigg@amazon.com>

---------

Signed-off-by: Daniel Deluiggi <ddeluigg@amazon.com>

* Receive: Remove migration of legacy storage to multi-tsdb (#8289)

This has been in since 0.13 (~5 years ago). This fixes issues caused when the default-tenant does not have any data and gets churned, resulting in the migration assuming that per-tenant directories are actually blocks, resulting in blocks not being queryable.

Signed-off-by: Aaron Walker <aaron@vcra.io>

* Resolve GitHub Actions Failure (#8299)

* update: changing to new prometheus page

Signed-off-by: Naman-B-Parlecha <namanparlecha@gmail.com>

* fix: disable-admin-op flag

Signed-off-by: Naman-B-Parlecha <namanparlecha@gmail.com>

---------

Signed-off-by: Naman-B-Parlecha <namanparlecha@gmail.com>

* Fix: DataRace in TestEndpointSetUpdate_StrictEndpointMetadata test (#8288)

* fix: Fixing Unit Test TestEndpointSetUpdate_StrictEndpointMetadata

Signed-off-by: Naman-B-Parlecha <namanparlecha@gmail.com>

* revert: CHANGELOG.md

Signed-off-by: Naman-Parlecha <namanparlecha@gmail.com>

---------

Signed-off-by: Naman-B-Parlecha <namanparlecha@gmail.com>
Signed-off-by: Naman-Parlecha <namanparlecha@gmail.com>

* build(deps): bump github/codeql-action from 3.26.13 to 3.28.19 (#8304)

Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.26.13 to 3.28.19.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/f779452ac5af1c261dce0346a8f964149f49322b...fca7ace96b7d713c7035871441bd52efbe39e27e)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 3.28.19
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump github.com/alicebob/miniredis/v2 from 2.22.0 to 2.35.0 (#8303)

Bumps [github.com/alicebob/miniredis/v2](https://github.com/alicebob/miniredis) from 2.22.0 to 2.35.0.
- [Release notes](https://github.com/alicebob/miniredis/releases)
- [Changelog](https://github.com/alicebob/miniredis/blob/master/CHANGELOG.md)
- [Commits](https://github.com/alicebob/miniredis/compare/v2.22.0...v2.35.0)

---
updated-dependencies:
- dependency-name: github.com/alicebob/miniredis/v2
  dependency-version: 2.35.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump golang.org/x/time from 0.11.0 to 0.12.0 (#8302)

Bumps [golang.org/x/time](https://github.com/golang/time) from 0.11.0 to 0.12.0.
- [Commits](https://github.com/golang/time/compare/v0.11.0...v0.12.0)

---
updated-dependencies:
- dependency-name: golang.org/x/time
  dependency-version: 0.12.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Revert capnp to v3.0.0-alpha (#8300)

cef0b02 caused a regression of !7944. This reverts the version upgrade to the previously working version

Signed-off-by: Aaron Walker <aaron@vcra.io>

* go.mod: update promql engine + Prom dep (#8305)

Update dependencies. Almost everything works except for
https://github.com/prometheus/prometheus/pull/16252.

Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>

* tools: fix tool bucket inspect output arg description (#8252)

* docs: fix tool bucket output arg description

Signed-off-by: gabyf <zweeking.tech@gmail.com>

* fix(tools_bucket): output description from cvs to csv

Signed-off-by: gabyf <zweeking.tech@gmail.com>

---------

Signed-off-by: gabyf <zweeking.tech@gmail.com>

* Updating the documention to reflect the correct flags when using --compact.enable-vertical-compaction.

Signed-off-by: Greg Sharpe <git+me@gregsharpe.co.uk>

* Query: limit LazyRetrieval memory buffer size (#8296)

* Limit lazyRespSet memory buffer size using a ring buffer

Signed-off-by: HC Zhu <hczhu.mtv@gmail.com>

* store: make heap a bit more consistent

Add len comparison to make it more consistent.

Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>

* Fix linter complains

Signed-off-by: HC Zhu <hczhu.mtv@gmail.com>

---------

Signed-off-by: HC Zhu <hczhu.mtv@gmail.com>
Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>
Co-authored-by: HC Zhu (DB) <hc.zhu@databricks.com>
Co-authored-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>
Co-authored-by: HC Zhu <hczhu.mtv@gmail.com>

* Add Prometheus counters for pending write requests and series requests in Receive (#8308)

Signed-off-by: HC Zhu <hczhu.mtv@gmail.com>
Co-authored-by: HC Zhu (DB) <hc.zhu@databricks.com>

* build(deps): bump github.com/KimMachineGun/automemlimit (#8312)

Bumps [github.com/KimMachineGun/automemlimit](https://github.com/KimMachineGun/automemlimit) from 0.7.2 to 0.7.3.
- [Release notes](https://github.com/KimMachineGun/automemlimit/releases)
- [Commits](https://github.com/KimMachineGun/automemlimit/compare/v0.7.2...v0.7.3)

---
updated-dependencies:
- dependency-name: github.com/KimMachineGun/automemlimit
  dependency-version: 0.7.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* query_frontend: only ready if downstream is ready (#8315)

We had an incident in prod where QFE was reporting that it is ready even
though the downstream didn't work due to a misconfigured load-balancer.
In this PR I am proposing sending periodic requests to downstream
to check whether it is working.

TestQueryFrontendTenantForward never worked so I deleted it.

Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>

* *: add CHANGELOG, update VERSION (#8320)

Prepare for 0.39.0-rc.0.

Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>

* *: release 0.39.0 (#8330)

Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>

* cmd/query_frontend: use original roundtripper + close immediately

Let's avoid using all the Cortex roundtripper machinery by using the
downstream roundtripper directly and then close the body immediately as
to not allocate any memory for the body of the response.

Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>

* qfe: defer properly

Refactor this check into a separate function so that defer would run at
the end of it and clean up resources properly.

Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>

* CHANGELOG: release 0.39.1

Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>

* query: add custom values to prompb methods (#8375)

Signed-off-by: Michael Hoffmann <mhoffmann@cloudflare.com>

* fix: querier panic (#8374)

Thanos Query crashes with "concurrent map iteration and map write" panic
in distributed mode when multiple goroutines access the same `annotations.Annotations`
map concurrently.

```
panic: concurrent map iteration and map write
github.com/prometheus/prometheus/util/annotations.(*Annotations).Merge(...)
github.com/thanos-io/promql-engine/engine.(*compatibilityQuery).Exec(...)
```

Here I replaced direct access to `res.Warnings.AsErrors()` with a thread-safe copy:
```go
// Before (unsafe)
warnings = append(warnings, res.Warnings.AsErrors()...)

// After (thread-safe)
safeWarnings := annotations.New().Merge(res.Warnings)
warnings = append(warnings, safeWarnings.AsErrors()...)
```

Signed-off-by: Joel Verezhak <jverezhak@open-systems.com>
Co-authored-by: Joel Verezhak <jverezhak@open-systems.com>
Signed-off-by: Michael Hoffmann <mhoffmann@cloudflare.com>

* Release 0.39.2

Signed-off-by: Michael Hoffmann <mhoffmann@cloudflare.com>

* Update Containerfile.operator

* update deps

Signed-off-by: Coleen Iona Quadros <coleen.quadros27@gmail.com>

---------

Signed-off-by: didukh86 <didukh86@gmail.com>
Signed-off-by: didukh86 <78904472+didukh86@users.noreply.github.com>
Signed-off-by: Taras Didukh <taras.didukh@advancedmd.com>
Signed-off-by: Michael Hoffmann <mhoffm@posteo.de>
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: milinddethe15 <milinddethe15@gmail.com>
Signed-off-by: Taras Didukh <didukh86@gmail.com>
Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>
Signed-off-by: Philip Gough <philip.p.gough@gmail.com>
Signed-off-by: Helen Tseng <bluesky6529@gmail.com>
Signed-off-by: Filip Petkovski <filip.petkovsky@gmail.com>
Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com>
Signed-off-by: Yi Jin <yi.jin@databricks.com>
Signed-off-by: kade.lee <tjdwls1201@gmail.com>
Signed-off-by: Ben Ye <benye@amazon.com>
Signed-off-by: Michael Hoffmann <mhoffmann@cloudflare.com>
Signed-off-by: Remi Vichery <remi@alkira.com>
Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>
Signed-off-by: Abel Simon <abelsimon48@gmail.com>
Signed-off-by: Coleen Iona Quadros <coleen.quadros27@gmail.com>
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
Signed-off-by: 🌲 Harry 🌊 John 🏔 <johrry@amazon.com>
Signed-off-by: Pengyu Wang <hncswpy@gmail.com>
Signed-off-by: Pedro Tanaka <pedro.stanaka@gmail.com>
Signed-off-by: Roberto O. Fernández Crisial <roberto.crisial@ip-192-168-0-7.ec2.internal>
Signed-off-by: Roberto O. Fernández Crisial <rofc@rofc.com.ar>
Signed-off-by: alanprot <alanprot@gmail.com>
Signed-off-by: Daniel Sabsay <sabsay@adobe.com>
Signed-off-by: Nicolas Takashi <nicolas.tcs@hotmail.com>
Signed-off-by: yeya24 <benye@amazon.com>
Signed-off-by: SungJin1212 <tjdwls1201@gmail.com>
Signed-off-by: Célian Garcia <celian.garcia@amadeus.com>
Signed-off-by: Piotr Śliwka <psliwka@opera.com>
Signed-off-by: Saumyacodes-40 <saumyabshah90@gmail.com>
Signed-off-by: Marta <me@marta.nz>
Signed-off-by: Michał Mazur <mmazur.box@gmail.com>
Signed-off-by: SuperQ <superq@gmail.com>
Signed-off-by: Saumya Shah <saumyabshah90@gmail.com>
Signed-off-by: naohiroo <naohiro.dev@gmail.com>
Signed-off-by: Aaron Walker <aaron@vcra.io>
Signed-off-by: Yuchen Wang <yuchen.wang@databricks.com>
Signed-off-by: Andrew Reilly <adr@maas.ca>
Signed-off-by: Philip Gough <pgough@redhat.com>
Signed-off-by: dongjiang <dongjiang1989@126.com>
Signed-off-by: machine424 <ayoubmrini424@gmail.com>
Signed-off-by: Matej Gera <38492574+matej-g@users.noreply.github.com>
Signed-off-by: Ben Dronen <dronenb@users.noreply.github.com>
Signed-off-by: Siavash Safi <siavash@cloudflare.com>
Signed-off-by: Anna Tran <trananna@amazon.com>
Signed-off-by: Naman-B-Parlecha <namanparlecha@gmail.com>
Signed-off-by: Naman-Parlecha <namanparlecha@gmail.com>
Signed-off-by: Daniel Deluiggi <ddeluigg@amazon.com>
Signed-off-by: gabyf <zweeking.tech@gmail.com>
Signed-off-by: Greg Sharpe <git+me@gregsharpe.co.uk>
Signed-off-by: HC Zhu <hczhu.mtv@gmail.com>
Signed-off-by: Joel Verezhak <jverezhak@open-systems.com>
Co-authored-by: didukh86 <78904472+didukh86@users.noreply.github.com>
Co-authored-by: Taras Didukh <didukh86@gmail.com>
Co-authored-by: Michael Hoffmann <mhoffm@posteo.de>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Milind Dethe <99114125+milinddethe15@users.noreply.github.com>
Co-authored-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>
Co-authored-by: Philip Gough <philip.p.gough@gmail.com>
Co-authored-by: Filip Petkovski <filip.petkovsky@gmail.com>
Co-authored-by: bluesky6529 <bluesky6529@gmail.com>
Co-authored-by: Saswata Mukherjee <saswataminsta@yahoo.com>
Co-authored-by: Yi Jin <96499497+jnyi@users.noreply.github.com>
Co-authored-by: SungJin1212 <tjdwls1201@gmail.com>
Co-authored-by: Ben Ye <benye@amazon.com>
Co-authored-by: Michael Hoffmann <mhoffmann@cloudflare.com>
Co-authored-by: Rémi Vichery <remi.vichery@gmail.com>
Co-authored-by: Pedro Tanaka <pedro.tanaka@shopify.com>
Co-authored-by: Abel Simon <abelsimon48@gmail.com>
Co-authored-by: Coleen Iona Quadros <coleen.quadros27@gmail.com>
Co-authored-by: Eng Zer Jun <engzerjun@gmail.com>
Co-authored-by: Harry John <johrry@amazon.com>
Co-authored-by: Pengyu Wang <hncswpy@gmail.com>
Co-authored-by: Roberto O. Fernández Crisial <rofc@rofc.com.ar>
Co-authored-by: Alan Protasio <alanprot@gmail.com>
Co-authored-by: Daniel Sabsay <danielrsabsay@gmail.com>
Co-authored-by: Daniel Sabsay <sabsay@adobe.com>
Co-authored-by: Nicolas Takashi <nicolas.tcs@hotmail.com>
Co-authored-by: Matej Gera <38492574+matej-g@users.noreply.github.com>
Co-authored-by: Célian GARCIA <celian.garcia1@gmail.com>
Co-authored-by: Piotr Śliwka <contact@psliwka.info>
Co-authored-by: Saumya Shah <115284013+Saumya40-codes@users.noreply.github.com>
Co-authored-by: Marta <me@marta.nz>
Co-authored-by: 민선 (minnie) <61786235+miinsun@users.noreply.github.com>
Co-authored-by: Michał Mazur <mmazur.box@gmail.com>
Co-authored-by: Ben Kochie <superq@gmail.com>
Co-authored-by: Naohiro Okada <naohiro.dev@gmail.com>
Co-authored-by: Aaron Walker <aaron+github@vcra.io>
Co-authored-by: Yuchen Wang <yuchen.wang@databricks.com>
Co-authored-by: Andrew Reilly <adr@maas.ca>
Co-authored-by: dongjiang <dongjiang1989@126.com>
Co-authored-by: Ayoub Mrini <ayoubmrini424@gmail.com>
Co-authored-by: dronenb <dronenb@users.noreply.github.com>
Co-authored-by: Siavash Safi <git@hosted.run>
Co-authored-by: Anna Tran <tran.annale@gmail.com>
Co-authored-by: Naman-Parlecha <namanparlecha@gmail.com>
Co-authored-by: Daniel Blando <ddeluigg@amazon.com>
Co-authored-by: Aaron Walker <aaron@vcra.io>
Co-authored-by: gabyf <zweeking.tech@gmail.com>
Co-authored-by: Greg Sharpe <git+me@gregsharpe.co.uk>
Co-authored-by: Hongcheng Zhu <hczhu.github@gmail.com>
Co-authored-by: HC Zhu (DB) <hc.zhu@databricks.com>
Co-authored-by: HC Zhu <hczhu.mtv@gmail.com>
Co-authored-by: Joel Verezhak <46783161+verejoel@users.noreply.github.com>
Co-authored-by: Joel Verezhak <jverezhak@open-systems.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants