Skip to content
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

Merge db_main/ into release/ #81

Merged
merged 138 commits into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
138 commits
Select commit Hold shift + click to select a range
b6a49f7
Allow using different listing strategies (#7134)
fpetkovski Feb 24, 2024
67b0d56
Receive: fix issue-7248 with parallel receive_forward (#7267)
jnyi Apr 11, 2024
acc7ce1
added Trademark URL (#7107)
kartikaysaxena Apr 29, 2024
3ce96c3
Allow specifying OTLP resource attributes for traces
fpetkovski Apr 30, 2024
72ea302
Add CHANGELOG entry
fpetkovski Apr 30, 2024
2736cf9
fix reader getting wrong posting offsets when querying multiple value…
yeya24 May 1, 2024
9aca730
Fix version
saswatamcode May 2, 2024
fb58c70
Sidecar: wait for prometheus on startup (#7323)
MichaHoffmann May 3, 2024
4179e5d
e2e/compact: add repro for issue #6775 (#7333)
GiedriusS May 3, 2024
1438c40
Emit tracing span for remote queries
fpetkovski May 3, 2024
eda3df2
Fix lint
fpetkovski May 3, 2024
215bff7
Query: Fixing extended functions in distributed querier (#7331)
pedro-stanaka May 4, 2024
b49a4dd
level change (#7330)
Vanshikav123 May 6, 2024
7039f23
Ruler UI: usage of alert.query-template inside Rules UI (#7329)
Vanshikav123 May 6, 2024
c6fc031
adding broken test case
pedro-stanaka May 2, 2024
aff1e9f
Query: fixing matching of exemplar stores with multi tenants
pedro-stanaka May 2, 2024
aba9e64
adding changelog
pedro-stanaka May 2, 2024
6af0aab
rename func
pedro-stanaka May 3, 2024
9db53a8
Dependency - Update minio-go to v7.0.70 (#7335)
eqfarhad May 6, 2024
ae55a87
*: Promql changes to add support to extended functions throught Thano…
pedro-stanaka May 7, 2024
dbc4f47
Bump webpack from 5.70.0 to 5.91.0 in /pkg/ui/react-app
dependabot[bot] May 9, 2024
5a270de
Rebuild react app
fpetkovski May 10, 2024
dd29494
Align tenant pruning according to wall clock (#7299)
fpetkovski May 13, 2024
8afede9
Bump ip from 1.1.5 to 1.1.9 in /pkg/ui/react-app (#7344)
dependabot[bot] May 13, 2024
48ba8be
Bump webpack-dev-middleware from 5.3.1 to 5.3.4 in /pkg/ui/react-app …
dependabot[bot] May 13, 2024
7f67ed4
Propagate request ID through gRPC context (#7356)
fpetkovski May 15, 2024
6838682
compact/planner: fix issue 6775 (#7334)
GiedriusS May 17, 2024
5dde298
Implement flag --query-frontend.slow-query-logs-user-header
wndhydrnt May 15, 2024
cb17380
Update docs
wndhydrnt May 15, 2024
007620e
update changelog
wndhydrnt May 15, 2024
92614d9
fix lint issues in docs
wndhydrnt May 15, 2024
cde2c1c
Allow configurable request logger in Store Gateway (#7367)
yeya24 May 17, 2024
4f9f21c
Receive: fix serverAsClient.Series goroutines leak (#6948)
thibaultmg May 20, 2024
a224bd6
misc: convert more code to build with stringlabels (#7372)
MichaHoffmann May 20, 2024
13bd20f
Docs: update my affiliation (#7375)
MichaHoffmann May 21, 2024
05cf10c
Receive: fix stats (#7373)
MichaHoffmann May 21, 2024
4c7f6a7
Add timeout to endpointset metric collector
fpetkovski May 6, 2024
f2f2138
UI: use prometheus POST query API (#7377)
MichaHoffmann May 22, 2024
db1c339
*: Ensure objstore flag values are masked & disable debug/pprof/cmdli…
saswatamcode May 23, 2024
098ccbc
Add request ID to gRPC and HTTP client spans
fpetkovski May 23, 2024
065d5e6
Proxy: unify store filtering (#7371)
MichaHoffmann May 24, 2024
232731e
Query: adding stats to the remote engine
pedro-stanaka May 15, 2024
20ea6e8
using new version of engine
pedro-stanaka May 15, 2024
796dea3
Implement query sample statistics in promql interface
pedro-stanaka May 15, 2024
6f37b8a
adjusting logging
pedro-stanaka May 15, 2024
f0466d1
fixing lint
pedro-stanaka May 15, 2024
cea47bd
Using latest main for promql-engine
pedro-stanaka May 16, 2024
2355b69
go mod tidy
pedro-stanaka May 16, 2024
d0420ea
Only send stats at the end
pedro-stanaka May 16, 2024
a4f704c
early continue on stats consume
pedro-stanaka May 16, 2024
163fe2c
fixing details
pedro-stanaka May 16, 2024
5bfe476
last fix on tests
pedro-stanaka May 16, 2024
5d1bbe4
Do not declare reference, instead declare value object
pedro-stanaka May 21, 2024
9f3485e
Adding checks for backward compatibility
pedro-stanaka May 21, 2024
7e92e96
Query: set keepalive for store grpc client (#7385)
MichaHoffmann May 24, 2024
a51b278
Update info on thanoscon
derrix060 May 24, 2024
cd31a52
remove tags interceptor
coleenquadros Aug 24, 2023
aad72e0
remove tags interceptor
coleenquadros Aug 24, 2023
7cd0d80
add changelog
coleenquadros Aug 24, 2023
31a430d
Update CHANGELOG.md
coleenquadros Aug 24, 2023
691f7b7
update changelog
coleenquadros Aug 31, 2023
4d65876
Update go_grpc_middleware to v2.0.0
coleenquadros Sep 4, 2023
9fa1bf0
ctx
coleenquadros Oct 18, 2023
6fc0a44
Update CHANGELOG.md
coleenquadros Oct 18, 2023
fe58e7b
add changelog
coleenquadros Aug 24, 2023
d7c3089
Update CHANGELOG.md
coleenquadros Aug 24, 2023
7a00adc
fix taggingsuite test
coleenquadros Oct 20, 2023
efefbf6
lint
coleenquadros Oct 20, 2023
4121712
add request id in logging field
coleenquadros Oct 20, 2023
a4f542f
lint
coleenquadros Oct 25, 2023
abac24e
docs-s
coleenquadros Nov 6, 2023
cce591a
lint
coleenquadros Nov 6, 2023
6e995bb
linting
coleenquadros Nov 13, 2023
5767543
changelog
coleenquadros Dec 14, 2023
195f05b
update query pkg to use internal tracing pkg to accomodate update of …
coleenquadros May 27, 2024
693deeb
Query: dont pass query hints to avoid triggering pushdown (#7392)
MichaHoffmann May 28, 2024
5a3bc00
*: Using native histograms for grpc middleware metrics (#7393)
pedro-stanaka May 28, 2024
330dacf
compactor: hold lock for a shorter amount of time (#7265)
GiedriusS May 29, 2024
b1c4b78
Cut patch release `v0.35.1` (#7394)
saswatamcode May 28, 2024
af9a85d
Added Conclusion Xforce (#7412)
jeroenvandelockand Jun 4, 2024
85713cc
receive: remove serverAsClient usage (#7411)
GiedriusS Jun 6, 2024
1f85923
Split promql span into query create and exec spans
fpetkovski Jun 3, 2024
bbffd3e
Sidecar: fix startup sequence (#7403)
MichaHoffmann Jun 10, 2024
f57ef0d
[Chore] Update Prometheus (#7416)
alanprot Jun 10, 2024
72fe738
Changelog - update the changelog entry position
eqfarhad Jun 10, 2024
6914528
Use cached label sets (#7420)
fpetkovski Jun 13, 2024
2cc8c13
Updates devcontainer dockerfile (#7428)
aritra24 Jun 13, 2024
23696c0
Fixup dependabot config (#7421)
SuperQ Jun 13, 2024
7d0e973
Bump actions/checkout from 3 to 4 (#7431)
dependabot[bot] Jun 13, 2024
d74fed6
Bump github/codeql-action from 2 to 3 (#7434)
dependabot[bot] Jun 13, 2024
0eb7113
Bump peter-evans/create-pull-request from 3 to 6 (#7432)
dependabot[bot] Jun 13, 2024
7b57022
Bump github.com/felixge/fgprof from 0.9.2 to 0.9.4 (#7453)
dependabot[bot] Jun 13, 2024
f733978
Bump github.com/klauspost/compress from 1.17.8 to 1.17.9 (#7447)
dependabot[bot] Jun 13, 2024
63cfa5a
Bump github.com/onsi/gomega from 1.29.0 to 1.33.1 (#7448)
dependabot[bot] Jun 13, 2024
976667b
Bump actions/setup-go from 3 to 5 (#7435)
dependabot[bot] Jun 13, 2024
5a09c56
Enhanced bytes limiter with data type param (#7414)
justinjung04 Jun 13, 2024
24fa10b
Use the default dependabot labeling (#7457)
SuperQ Jun 14, 2024
26d83b5
chore: updating objstore (#7462)
harry671003 Jun 16, 2024
9f4daef
Upgrade Prometheus common and Prometheus to latest main (#7465)
yeya24 Jun 17, 2024
459ac6c
Bump objstore version (#7469)
axeoman Jun 18, 2024
460ea5e
put query stats logging under s.debugLogging (#7471)
yeya24 Jun 19, 2024
2394370
Store: add failing test to show an issue with tsdb selector (#7468)
MichaHoffmann Jun 20, 2024
b8c2366
Store: fix merge race (#7476)
MichaHoffmann Jun 22, 2024
8e99dcc
chore: fix docs check (#7478)
MichaHoffmann Jun 22, 2024
939dc4f
chore: update objstore (#7477)
MichaHoffmann Jun 22, 2024
e94af74
Bump github.com/opentracing/basictracer-go from 1.0.0 to 1.1.0 (#7449)
dependabot[bot] Jun 25, 2024
3137693
Bump go.elastic.co/apm/module/apmot from 1.11.0 to 1.15.0 (#7441)
dependabot[bot] Jun 25, 2024
48cd6b5
Bump actions/setup-node from 3 to 4 (#7433)
dependabot[bot] Jun 25, 2024
e1b5db5
Bump braces from 3.0.2 to 3.0.3 in /pkg/ui/react-app (#7424)
dependabot[bot] Jun 25, 2024
510b05b
Bump google.golang.org/protobuf from 1.34.1 to 1.34.2 (#7437)
dependabot[bot] Jun 25, 2024
ee0f864
Bump actions/cache from 3 to 4 (#7458)
dependabot[bot] Jun 25, 2024
05c6584
Proxy: fix response set panic (#7484)
MichaHoffmann Jun 26, 2024
94ad95c
CHANGELOG: Mark 0.36 as in progress
MichaHoffmann Jun 26, 2024
a6eb1ea
Cut release candidate v0.36.0-rc.0 (#7490)
MichaHoffmann Jun 26, 2024
98b1df2
Cut release candidate 0.36.0 rc.1 (#7510)
MichaHoffmann Jul 14, 2024
6ec898b
Cut release v0.36.0 (#7578)
MichaHoffmann Jul 31, 2024
3fc9e64
Cut patch release `v0.36.1` (#7636)
saswatamcode Aug 13, 2024
6b85c44
Fix build
hczhu-db Aug 22, 2024
bba0d3c
Fix tests
hczhu-db Aug 23, 2024
5dc014d
Fix a test
hczhu-db Aug 23, 2024
bfd66a4
Format code
hczhu-db Aug 23, 2024
5533cf5
Fix the test
hczhu-db Aug 23, 2024
7ebb612
Skip test TestIngestorRestart
hczhu-db Aug 23, 2024
23355a6
[ES-1214414] Thanos v0.36.0 upgrade (#76)
hczhu-db Aug 28, 2024
0ed7047
enable query stats logging and metrics
yuchen-db Sep 11, 2024
aa63600
populate stats
yuchen-db Sep 11, 2024
3fa93a1
only report expensive queries
yuchen-db Sep 11, 2024
ed87c72
add logs
yuchen-db Sep 12, 2024
2d2e661
default 1GB
yuchen-db Sep 12, 2024
30e2550
Report expensive queries in query frontend (#78)
yuchen-db Sep 12, 2024
9d14915
add top metrics
yuchen-db Sep 16, 2024
35f216c
wip
yuchen-db Sep 16, 2024
d45908c
rm debug log
yuchen-db Sep 16, 2024
89493ad
add flags
yuchen-db Sep 16, 2024
9c0440c
change params
yuchen-db Sep 16, 2024
00fc9e6
top metrics (#79)
yuchen-db Sep 16, 2024
8864c3c
[PLAT-118505] fix receive write metrics
jnyi Sep 16, 2024
1a3b559
[PLAT-118505] fix receive write metrics (#80)
jnyi Sep 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
FROM mcr.microsoft.com/devcontainers/go:1.21

RUN echo "Downloading prometheus..." \
&& curl -sSL -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/prometheus/prometheus/tags" -o /tmp/tags.json \
&& VERSION_LIST="$(jq -r '.[] | select(.name | contains("rc") | not) | .name | split("v") | .[1]' /tmp/tags.json | tr -d '"' | sort -rV)" \
&& curl -sSL -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/prometheus/prometheus/releases" -o /tmp/releases.json \
&& VERSION_LIST="$(jq -r '.[] | select(.tag_name | contains("rc") | not) | .tag_name | split("v") | .[1]' /tmp/releases.json | tr -d '"' | sort -rV)" \
&& PROMETHEUS_LATEST_VERSION="$(echo "${VERSION_LIST}" | head -n 1)" \
&& PROMETHEUS_FILE_NAME="prometheus-${PROMETHEUS_LATEST_VERSION}.linux-amd64" \
&& curl -fsSLO "https://github.com/prometheus/prometheus/releases/download/v${PROMETHEUS_LATEST_VERSION}/${PROMETHEUS_FILE_NAME}.tar.gz" \
Expand Down
11 changes: 3 additions & 8 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
---
version: 2
updates:
- package-ecosystem: "gomod"
directory: "/"
vendor: false
schedule:
interval: "weekly"
labels: ["dependencies"]
open-pull-requests-limit: 20
- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "weekly"
labels: ["dependencies"]

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: weekly
labels:
- "dependencies"

interval: weekly
10 changes: 5 additions & 5 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.21.x

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
config-file: ./.github/codeql/codeql-config.yml
Expand All @@ -56,7 +56,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -70,4 +70,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
4 changes: 2 additions & 2 deletions .github/workflows/container-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Run busybox updater
run: |
Expand All @@ -17,7 +17,7 @@ jobs:
shell: bash

- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
uses: peter-evans/create-pull-request@v6
with:
signoff: true
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,21 @@ jobs:
GOBIN: /tmp/.bin
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.21.x

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: .mdoxcache
key: ${{ runner.os }}-mdox-${{ hashFiles('docs/**/*.md', 'examples/**/*.md', 'mixin/**/*.md', '*.md') }}
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ jobs:
GOBIN: /tmp/.bin
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.21.x

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
~/.cache/go-build
Expand All @@ -43,14 +43,14 @@ jobs:
GOBIN: /tmp/.bin
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.21.x

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
~/.cache/go-build
Expand Down Expand Up @@ -115,14 +115,14 @@ jobs:
GOBIN: /tmp/.bin
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Go.
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.21.x

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
~/.cache/go-build
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/mixin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.21.x

Expand All @@ -29,10 +29,10 @@ jobs:
name: Linters (Static Analysis) for Jsonnet (mixin)
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.21.x

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/react.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ jobs:
name: React UI test on Node ${{ matrix.node }}
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install nodejs
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
Expand Down
3 changes: 3 additions & 0 deletions .mdox.validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,6 @@ validators:
type: 'ignore'
- regex: 'twitter\.com'
type: 'ignore'
# 500 when requested my mdox in GH actions.
- regex: 'outshift\.cisco\.com'
type: 'ignore'
34 changes: 34 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,38 @@ We use *breaking :warning:* to mark changes that are not backward compatible (re

### Fixed

- [#7323](https://github.com/thanos-io/thanos/pull/7323) Sidecar: wait for prometheus on startup
- [#7326](https://github.com/thanos-io/thanos/pull/7326) Query: fixing exemplars proxy when querying stores with multiple tenants.
- [#7335](https://github.com/thanos-io/thanos/pull/7335) Dependency: Update minio-go to v7.0.70 which includes support for EKS Pod Identity.
- [#6948](https://github.com/thanos-io/thanos/pull/6948) Receive: fix goroutines leak during series requests to thanos store api.
- [#7392](https://github.com/thanos-io/thanos/pull/7392) Query: fix broken min, max for pre 0.34.1 sidecars

### Added

- [#7317](https://github.com/thanos-io/thanos/pull/7317) Tracing: allow specifying resource attributes for the OTLP configuration.
- [#7363](https://github.com/thanos-io/thanos/pull/7363) Query-frontend: set value of remote_user field in Slow Query Logs from HTTP header
- [#7335](https://github.com/thanos-io/thanos/pull/7335) Dependency: Update minio-go to v7.0.70 which includes support for EKS Pod Identity.
- [#7477](https://github.com/thanos-io/thanos/pull/7477) *: Bump objstore to `20240622095743-1afe5d4bc3cd`

### Changed

- [#7334](https://github.com/thanos-io/thanos/pull/7334) Compactor: do not vertically compact downsampled blocks. Such cases are now marked with `no-compact-mark.json`. Fixes panic `panic: unexpected seriesToChunkEncoder lack of iterations`.
- [#7382](https://github.com/thanos-io/thanos/pull/7382) *: Ensure objstore flag values are masked & disable debug/pprof/cmdline
- [#7393](https://github.com/thanos-io/thanos/pull/7393) *: *breaking :warning:* Using native histograms for grpc middleware metrics. Metrics `grpc_client_handling_seconds` and `grpc_server_handling_seconds` will now be native histograms, if you have enabled native histogram scraping you will need to update your PromQL expressions to use the new metric names.

### Removed

## [v0.35.1](https://github.com/thanos-io/thanos/tree/release-0.35) - 28.05.2024

### Fixed

- [#7323](https://github.com/thanos-io/thanos/pull/7323) Sidecar: wait for prometheus on startup
- [#6948](https://github.com/thanos-io/thanos/pull/6948) Receive: fix goroutines leak during series requests to thanos store api.
- [#7382](https://github.com/thanos-io/thanos/pull/7382) *: Ensure objstore flag values are masked & disable debug/pprof/cmdline
- [#7392](https://github.com/thanos-io/thanos/pull/7392) Query: fix broken min, max for pre 0.34.1 sidecars
- [#7373](https://github.com/thanos-io/thanos/pull/7373) Receive: Fix stats for remote write
- [#7318](https://github.com/thanos-io/thanos/pull/7318) Compactor: Recover from panic to log block ID

### Added

### Changed
Expand Down Expand Up @@ -54,6 +86,7 @@ We use *breaking :warning:* to mark changes that are not backward compatible (re
- [#7271](https://github.com/thanos-io/thanos/pull/7271) Query: fixing dedup iterator when working on mixed sample types.
- [#7289](https://github.com/thanos-io/thanos/pull/7289) Query Frontend: show warnings from downstream queries.
- [#7308](https://github.com/thanos-io/thanos/pull/7308) Store: Batch TSDB Infos for blocks.
- [#7301](https://github.com/thanos-io/thanos/pull/7301) Store Gateway: fix index header reader `PostingsOffsets` returning wrong values.

### Added

Expand Down Expand Up @@ -158,6 +191,7 @@ We use *breaking :warning:* to mark changes that are not backward compatible (re
- [#6753](https://github.com/thanos-io/thanos/pull/6753) mixin(Rule): *breaking :warning:* Fixed the mixin rules with duplicate names and updated the promtool version from v0.37.0 to v0.47.0
- [#6772](https://github.com/thanos-io/thanos/pull/6772) *: Bump prometheus to v0.47.2-0.20231006112807-a5a4eab679cc
- [#6794](https://github.com/thanos-io/thanos/pull/6794) Receive: the exported HTTP metrics now uses the specified default tenant for requests where no tenants are found.
- [#6651](https://github.com/thanos-io/thanos/pull/6651) *: Update go_grpc_middleware to v2.0.0. Remove Tags Interceptor from Thanos. Tags interceptor is removed from v2.0.0 go-grpc-middleware and is not needed anymore.

### Removed

Expand Down
2 changes: 1 addition & 1 deletion MAINTAINERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
| Matej Gera | [email protected] | `@Matej Gera` | [@matej-g](https://github.com/matej-g) | Coralogix |
| Filip Petkovski | [email protected] | `@Filip Petkovski` | [@fpetkovski](https://github.com/fpetkovski) | Shopify |
| Saswata Mukherjee | [email protected] | `@saswatamcode` | [@saswatamcode](https://github.com/saswatamcode) | Red Hat |
| Michael Hoffmann | [email protected] | `@Michael Hoffmann` | [@MichaHoffmann](https://github.com/MichaHoffmann) | Aiven |
| Michael Hoffmann | [email protected] | `@Michael Hoffmann` | [@MichaHoffmann](https://github.com/MichaHoffmann) | Cloudflare |

We are bunch of people from different companies with various interests and skills. We are from different parts of the world: Germany, Holland, Lithuania, US, UK and India. We have something in common though: We all share the love for OpenSource, Go, Prometheus, :coffee: and Observability topics.

Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ NewHistorgram,NewHistogramVec,NewSummary,NewSummaryVec}=github.com/prometheus/cl
NewCounterVec,NewCounterVec,NewGauge,NewGaugeVec,NewGaugeFunc,NewHistorgram,NewHistogramVec,NewSummary,NewSummaryVec},\
github.com/NYTimes/gziphandler.{GzipHandler}=github.com/klauspost/compress/gzhttp.{GzipHandler},\
sync/atomic=go.uber.org/atomic,github.com/cortexproject/cortex=github.com/thanos-io/thanos/internal/cortex,\
github.com/prometheus/prometheus/promql/parser.{ParseExpr,ParseMetricSelector}=github.com/thanos-io/thanos/pkg/extpromql.{ParseExpr,ParseMetricSelector},\
io/ioutil.{Discard,NopCloser,ReadAll,ReadDir,ReadFile,TempDir,TempFile,Writefile}" $(shell go list ./... | grep -v "internal/cortex")
@$(FAILLINT) -paths "fmt.{Print,Println,Sprint}" -ignore-tests ./...
@echo ">> linting all of the Go files GOGC=${GOGC}"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

[![CI](https://github.com/thanos-io/thanos/workflows/CI/badge.svg)](https://github.com/thanos-io/thanos/actions?query=workflow%3ACI) [![CI](https://circleci.com/gh/thanos-io/thanos.svg?style=svg)](https://circleci.com/gh/thanos-io/thanos) [![go](https://github.com/thanos-io/thanos/workflows/go/badge.svg)](https://github.com/thanos-io/thanos/actions?query=workflow%3Ago) [![react](https://github.com/thanos-io/thanos/workflows/react/badge.svg)](https://github.com/thanos-io/thanos/actions?query=workflow%3Areact) [![docs](https://github.com/thanos-io/thanos/workflows/docs/badge.svg)](https://github.com/thanos-io/thanos/actions?query=workflow%3Adocs) [![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/thanos-io/thanos) [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://github.com/codespaces/new?hide_repo_select=true&ref=main&repo=109162639)

> 📢 [ThanosCon](https://thanos.io/blog/2023-20-11-thanoscon/) is happening on 19th March as a co-located half-day on KubeCon EU in Paris. Join us there! 🤗 CFP is open until 3rd December!
> 📢 [ThanosCon](https://events.linuxfoundation.org/kubecon-cloudnativecon-europe/co-located-events/thanoscon/) happened on 19th March 2024 as a co-located half-day on KubeCon EU in Paris.

## Overview

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.35.1
0.36.1
9 changes: 8 additions & 1 deletion cmd/thanos/compact.go
Original file line number Diff line number Diff line change
Expand Up @@ -369,13 +369,20 @@ func runCompact(
conf.blockFilesConcurrency,
conf.compactBlocksFetchConcurrency,
)
var planner compact.Planner

tsdbPlanner := compact.NewPlanner(logger, levels, noCompactMarkerFilter)
planner := compact.WithLargeTotalIndexSizeFilter(
largeIndexFilterPlanner := compact.WithLargeTotalIndexSizeFilter(
tsdbPlanner,
insBkt,
int64(conf.maxBlockIndexSize),
compactMetrics.blocksMarked.WithLabelValues(metadata.NoCompactMarkFilename, metadata.IndexSizeExceedingNoCompactReason),
)
if enableVerticalCompaction {
planner = compact.WithVerticalCompactionDownsampleFilter(largeIndexFilterPlanner, insBkt, compactMetrics.blocksMarked.WithLabelValues(metadata.NoCompactMarkFilename, metadata.DownsampleVerticalCompactionNoCompactReason))
} else {
planner = largeIndexFilterPlanner
}
blocksCleaner := compact.NewBlocksCleaner(logger, insBkt, ignoreDeletionMarkFilter, deleteDelay, compactMetrics.blocksCleaned, compactMetrics.blockCleanupFailures)
compactor, err := compact.NewBucketCompactorWithCheckerAndCallback(
logger,
Expand Down
12 changes: 6 additions & 6 deletions cmd/thanos/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import (
"github.com/go-kit/log"
"github.com/go-kit/log/level"
grpc_logging "github.com/grpc-ecosystem/go-grpc-middleware/v2/interceptors/logging"
"github.com/grpc-ecosystem/go-grpc-middleware/v2/interceptors/tags"
"github.com/oklog/run"
"github.com/opentracing/opentracing-go"
"github.com/pkg/errors"
Expand Down Expand Up @@ -268,7 +267,8 @@ func registerQuery(app *extkingpin.App) {
return errors.Wrap(err, "error while parsing config for request logging")
}

tagOpts, grpcLogOpts, err := logging.ParsegRPCOptions(reqLogConfig)
grpcLogOpts, logFilterMethods, err := logging.ParsegRPCOptions(reqLogConfig)

if err != nil {
return errors.Wrap(err, "error while parsing config for request logging")
}
Expand Down Expand Up @@ -310,7 +310,7 @@ func registerQuery(app *extkingpin.App) {
tracer,
httpLogOpts,
grpcLogOpts,
tagOpts,
logFilterMethods,
grpcServerConfig,
*grpcCompression,
*secure,
Expand Down Expand Up @@ -395,7 +395,7 @@ func runQuery(
tracer opentracing.Tracer,
httpLogOpts []logging.Option,
grpcLogOpts []grpc_logging.Option,
tagOpts []tags.Option,
logFilterMethods []string,
grpcServerConfig grpcConfig,
grpcCompression string,
secure bool,
Expand Down Expand Up @@ -831,7 +831,7 @@ func runQuery(
defaultEngineType := querypb.EngineType(querypb.EngineType_value[defaultEngine])
grpcAPI := apiv1.NewGRPCAPI(time.Now, queryReplicaLabels, queryableCreator, engineFactory, defaultEngineType, lookbackDeltaCreator, instantDefaultMaxSourceResolution)
storeServer := store.NewLimitedStoreServer(store.NewInstrumentedStoreServer(reg, proxy), reg, storeRateLimits)
s := grpcserver.New(logger, reg, tracer, grpcLogOpts, tagOpts, comp, grpcProbe,
s := grpcserver.New(logger, reg, tracer, grpcLogOpts, logFilterMethods, comp, grpcProbe,
grpcserver.WithServer(apiv1.RegisterQueryServer(grpcAPI)),
grpcserver.WithServer(store.RegisterStoreServer(storeServer, logger)),
grpcserver.WithServer(rules.RegisterRulesServer(rulesProxy)),
Expand All @@ -851,6 +851,7 @@ func runQuery(
}, func(error) {
statusProber.NotReady(err)
s.Shutdown(err)
endpoints.Close()
})
}

Expand Down Expand Up @@ -949,7 +950,6 @@ func prepareEndpointSet(
})
}, func(error) {
cancel()
endpointSet.Close()
})
}

Expand Down
Loading
Loading