Skip to content

Commit 3ec7d1c

Browse files
committed
Merge remote-tracking branch 'upstream/release-0.13' into
openshift/master * upstream/release-0.13: Cut release v0.13.0 shipper: Be strict about upload order unless it's specified so & cut v0.13.0-rc.2 (thanos-io#2765) Cut 0.13.0 release. (thanos-io#2762) Cut release 0.13.0-rc.1 (thanos-io#2720) Store: `irate` and `resets` use now counter downsampling aggregations. (thanos-io#2719) deps: Updated minio-go dependency to v6.0.56 to add two region endpoints (thanos-io#2705) (thanos-io#2718) store/proxy: Deduplicate chunks on StoreAPI level. Recommend chunk sorting for StoreAPI + Optimized iter chunk dedup. (thanos-io#2710) (thanos-io#2711) Allow using multiple memcached clients at the same time. (thanos-io#2648) (thanos-io#2698) Updated Prometheus as little as possible to include Isolation fix. (thanos-io#2697) Release fix attempt2. Fixed test job. (thanos-io#2650) Fixed promu build to build in compatible directory that crossbuild understands. Cut v0.13.0-rc.0 (thanos-io#2628)
2 parents 5c88601 + a2edf6e commit 3ec7d1c

File tree

23 files changed

+223
-231
lines changed

23 files changed

+223
-231
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version: 2
44
defaults: &defaults
55
docker:
66
# Built by Thanos make docker-ci
7-
- image: quay.io/thanos/thanos-ci:v1.2-go1.14.2-node
7+
- image: quay.io/thanos/thanos-ci:v1.1-go1.14.2-node
88
jobs:
99
test:
1010
<<: *defaults

CHANGELOG.md

Lines changed: 25 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -11,63 +11,48 @@ We use *breaking* word for marking changes that are not backward compatible (rel
1111

1212
## Unreleased
1313

14-
### Fixed
15-
16-
- [#2637](https://github.com/thanos-io/thanos/pull/2637) Compact: detect retryable errors that are inside of a wrapped `tsdb.MultiError`
17-
- [#2648](https://github.com/thanos-io/thanos/pull/2648) Store: allow index cache and caching bucket to be configured at the same time.
18-
- [#2705](https://github.com/thanos-io/thanos/pull/2705) minio-go: Added support for `af-south-1` and `eu-south-1` regions.
19-
- [#2728](https://github.com/thanos-io/thanos/pull/2728) Query: Fixed panics when using larger number of replica labels with short series label sets.
20-
21-
### Changed
22-
23-
- [#2658](https://github.com/thanos-io/thanos/pull/2658) [#2703](https://github.com/thanos-io/thanos/pull/2703) Upgrade to Prometheus [@3268eac2ddda](https://github.com/prometheus/prometheus/commit/3268eac2ddda) which is after v2.18.1.
24-
- TSDB now does memory-mapping of Head chunks and reduces memory usage.
25-
- [#2667](https://github.com/thanos-io/thanos/pull/2667) Store: removed support to the legacy `index.cache.json`. The hidden flag `--store.disable-index-header` was removed.
26-
- [#2667](https://github.com/thanos-io/thanos/pull/2667) Compact: the deprecated flag `--index.generate-missing-cache-file` and the metric `thanos_compact_generated_index_total` were removed.
27-
- [2603](https://github.com/thanos-io/thanos/pull/2603) Store/Querier: Significantly optimize cases where StoreAPIs or blocks returns exact overlapping chunks (e.g Store GW and sidecar or brute force Store Gateway HA).
28-
- [#2671](https://github.com/thanos-io/thanos/pull/2671) *breaking* Tools: bucket replicate flag `--resolution` is now in Go duration format.
29-
- [#2671](https://github.com/thanos-io/thanos/pull/2671) Tools: bucket replicate now replicates by default all blocks.
30-
- [#2739](https://github.com/thanos-io/thanos/pull/2739) Changed `bucket tool bucket verify` `--id-whitelist` flag to `--id`.
31-
- [#2748](https://github.com/thanos-io/thanos/pull/2748) Upgrade Prometheus to [@66dfb951c4ca](https://github.com/prometheus/prometheus/commit/66dfb951c4ca2c1dd3f266172a48a925403b13a5) which is after v2.19.0.
32-
- PromQL now allow us to executed concurrent selects.
33-
34-
### Added
35-
36-
- [#2671](https://github.com/thanos-io/thanos/pull/2671) Tools: bucket replicate now allows passing repeated `--compaction` and `--resolution` flags.
37-
38-
## [v0.13.0](https://github.com/thanos-io/thanos/releases) - IN PROGRESS
14+
## [v0.13.0](https://github.com/thanos-io/thanos/releases/tag/v0.13.0) - 2020.06.22
3915

4016
### Fixed
4117

42-
- [#2536](https://github.com/thanos-io/thanos/pull/2536) minio-go: Fixed AWS STS endpoint url to https for Web Identity providers on AWS EKS
18+
- [#2548](https://github.com/thanos-io/thanos/pull/2548) Query: Fixed rare cases of double counter reset accounting when querying `rate` with deduplication enabled.
19+
- [#2536](https://github.com/thanos-io/thanos/pull/2536) S3: Fixed AWS STS endpoint url to https for Web Identity providers on AWS EKS.
4320
- [#2501](https://github.com/thanos-io/thanos/pull/2501) Query: Gracefully handle additional fields in `SeriesResponse` protobuf message that may be added in the future.
44-
- [#2568](https://github.com/thanos-io/thanos/pull/2568) Query: Does not close the connection of strict, static nodes if establishing a connection had succeeded but Info() call failed
21+
- [#2568](https://github.com/thanos-io/thanos/pull/2568) Query: Don't close the connection of strict, static nodes if establishing a connection had succeeded but Info() call failed.
4522
- [#2615](https://github.com/thanos-io/thanos/pull/2615) Rule: Fix bugs where rules were out of sync.
46-
- [#2614](https://github.com/thanos-io/thanos/pull/2614) Tracing: Disable Elastic APM Go Agent default tracer on initialization to disable the default metric gatherer
47-
- [#2548](https://github.com/thanos-io/thanos/pull/2548) Query: Fixed rare cases of double counter reset accounting when querying `rate` with deduplication enabled.
23+
- [#2614](https://github.com/thanos-io/thanos/pull/2614) Tracing: Disabled Elastic APM Go Agent default tracer on initialization to disable the default metric gatherer.
4824
- [#2525](https://github.com/thanos-io/thanos/pull/2525) Query: Fixed logging for dns resolution error in the `Query` component.
25+
- [#2484](https://github.com/thanos-io/thanos/pull/2484) Query/Ruler: Fixed issue #2483, when web.route-prefix is set, it is added twice in HTTP router prefix.
26+
- [#2416](https://github.com/thanos-io/thanos/pull/2416) Bucket: Fixed issue #2416 bug in `inspect --sort-by` doesn't work correctly in all cases.
27+
- [#2719](https://github.com/thanos-io/thanos/pull/2719) Query: `irate` and `resets` use now counter downsampling aggregations.
28+
- [#2705](https://github.com/thanos-io/thanos/pull/2705) minio-go: Added support for `af-south-1` and `eu-south-1` regions.
29+
- [#2753](https://github.com/thanos-io/thanos/issues/2753) Sidecar, Receive, Rule: Fixed possibility of out of order uploads in error cases. This could potentially cause Compactor to create overlapping blocks.
4930

5031
### Added
5132

52-
- [#2502](https://github.com/thanos-io/thanos/pull/2502) Added `hints` field to `SeriesResponse`. Hints in an opaque data structure that can be used to carry additional information from the store and its content is implementation specific.
53-
- [#2521](https://github.com/thanos-io/thanos/pull/2521) Sidecar: add `thanos_sidecar_reloader_reloads_failed_total`, `thanos_sidecar_reloader_reloads_total`, `thanos_sidecar_reloader_watch_errors_total`, `thanos_sidecar_reloader_watch_events_total` and `thanos_sidecar_reloader_watches` metrics.
54-
- [#2412](https://github.com/thanos-io/thanos/pull/2412) ui: add React UI from Prometheus upstream. Currently only accessible from Query component as only `/graph` endpoint is migrated.
33+
- [#2012](https://github.com/thanos-io/thanos/pull/2012) Receive: Added multi-tenancy support (based on header)
34+
- [#2502](https://github.com/thanos-io/thanos/pull/2502) StoreAPI: Added `hints` field to `SeriesResponse`. Hints in an opaque data structure that can be used to carry additional information from the store and its content is implementation specific.
35+
- [#2521](https://github.com/thanos-io/thanos/pull/2521) Sidecar: Added `thanos_sidecar_reloader_reloads_failed_total`, `thanos_sidecar_reloader_reloads_total`, `thanos_sidecar_reloader_watch_errors_total`, `thanos_sidecar_reloader_watch_events_total` and `thanos_sidecar_reloader_watches` metrics.
36+
- [#2412](https://github.com/thanos-io/thanos/pull/2412) UI: Added React UI from Prometheus upstream. Currently only accessible from Query component as only `/graph` endpoint is migrated.
5537
- [#2532](https://github.com/thanos-io/thanos/pull/2532) Store: Added hidden option `--store.caching-bucket.config=<yaml content>` (or `--store.caching-bucket.config-file=<file.yaml>`) for experimental caching bucket, that can cache chunks into shared memcached. This can speed up querying and reduce number of requests to object storage.
5638
- [#2579](https://github.com/thanos-io/thanos/pull/2579) Store: Experimental caching bucket can now cache metadata as well. Config has changed from #2532.
5739
- [#2526](https://github.com/thanos-io/thanos/pull/2526) Compact: In case there are no labels left after deduplication via `--deduplication.replica-label`, assign first `replica-label` with value `deduped`.
58-
- [#2621](https://github.com/thanos-io/thanos/pull/2621) Receive: add flag to configure forward request timeout.
40+
- [#2621](https://github.com/thanos-io/thanos/pull/2621) Receive: Added flag to configure forward request timeout. Receive write will complete request as soon as quorum of writes succeeds.
5941

6042
### Changed
6143

62-
- [#2194](https://github.com/thanos-io/thanos/pull/2194) Updated to golang v1.14.2
63-
- [#2505](https://github.com/thanos.io/thanos/pull/2505) Store: remove obsolete `thanos_store_node_info` metric.
44+
- [#2194](https://github.com/thanos-io/thanos/pull/2194) Updated to golang v1.14.2.
45+
- [#2505](https://github.com/thanos.io/thanos/pull/2505) Store: Removed obsolete `thanos_store_node_info` metric.
6446
- [2513](https://github.com/thanos-io/thanos/pull/2513) Tools: Moved `thanos bucket` commands to `thanos tools bucket`, also
6547
moved `thanos check rules` to `thanos tools rules-check`. `thanos tools rules-check` also takes rules by `--rules` repeated flag not argument
6648
anymore.
6749
- [#2548](https://github.com/thanos-io/thanos/pull/2548/commits/53e69bd89b2b08c18df298eed7d90cb7179cc0ec) Store, Querier: remove duplicated chunks on StoreAPI.
68-
- [#2596](https://github.com/thanos-io/thanos/pull/2596) Update to Prometheus [@cd73b3d33e064bbd846fc7a26dc8c313d46af382](https://github.com/prometheus/prometheus/commit/cd73b3d33e064bbd846fc7a26dc8c313d46af382) which falls in between v2.17.0 and v2.18.0.
69-
- TSDB now supports isolation of append and queries.
70-
- TSDB now holds less WAL files after Head Truncation.
50+
- [#2596](https://github.com/thanos-io/thanos/pull/2596) Updated Prometheus dependency to [@cd73b3d33e064bbd846fc7a26dc8c313d46af382](https://github.com/prometheus/prometheus/commit/cd73b3d33e064bbd846fc7a26dc8c313d46af382) which falls in between v2.17.0 and v2.18.0.
51+
- Receive,Rule: TSDB now supports isolation of append and queries.
52+
- Receive,Rule: TSDB now holds less WAL files after Head Truncation.
53+
- [#2450](https://github.com/thanos-io/thanos/pull/2450) Store: Added Regex-set optimization for `label=~"a|b|c"` matchers.
54+
- [#2526](https://github.com/thanos-io/thanos/pull/2526) Compact: In case there are no labels left after deduplication via `--deduplication.replica-label`, assign first `replica-label` with value `deduped`.
55+
- [2603](https://github.com/thanos-io/thanos/pull/2603) Store/Querier: Significantly optimize cases where StoreAPIs or blocks returns exact overlapping chunks (e.g Store GW and sidecar or brute force Store Gateway HA).
7156

7257
## [v0.12.2](https://github.com/thanos-io/thanos/releases/tag/v0.12.2) - 2020.04.30
7358

@@ -81,17 +66,9 @@ anymore.
8166
### Fixed
8267

8368
- [#2411](https://github.com/thanos-io/thanos/pull/2411) Query: fix a bug where queries might not time out sometimes due to issues with one or more StoreAPIs.
84-
- [#2474](https://github.com/thanos-io/thanos/pull/2474) Store: fix a panic caused by concurrent memory access during block filtering.
85-
- [#2472](https://github.com/thanos-io/thanos/pull/2472) Compact: fix a bug where partial blocks were never deleted, causing spam of warnings.
86-
- [#2484](https://github.com/thanos-io/thanos/pull/2484) Query/Ruler: fix issue #2483, when web.route-prefix is set, it is added twice in HTTP router prefix.
87-
- [#2416](https://github.com/thanos-io/thanos/pull/2416) Bucket: fixes issue #2416 bug in `inspect --sort-by` doesn't work correctly in all cases
88-
- [#2411](https://github.com/thanos-io/thanos/pull/2411) Query: fix a bug where queries might not time out sometimes due to issues with one or more StoreAPIs
89-
90-
### Added
91-
92-
### Changed
93-
- [#2450](https://github.com/thanos-io/thanos/pull/2450) Store: regex-set optimization for `label=~"a|b|c"` matchers.
9469
- [#2475](https://github.com/thanos-io/thanos/pull/2475) Store: remove incorrect optimizations for queries with `=~".*"` and `!=~".*"` matchers.
70+
- [#2472](https://github.com/thanos-io/thanos/pull/2472) Compact: fix a bug where partial blocks were never deleted, causing spam of warnings.
71+
- [#2474](https://github.com/thanos-io/thanos/pull/2474) Store: fix a panic caused by concurrent memory access during block filtering.
9572

9673
## [v0.12.0](https://github.com/thanos-io/thanos/releases/tag/v0.12.0) - 2020.04.15
9774

Dockerfile.thanos-ci

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Available from https://hub.docker.com/r/circleci/golang/
22
FROM circleci/golang:1.14.2-node
33

4-
ENV GOBIN=/go/bin
4+
ENV GOBIN=/home/circleci/.local/bin
55

6-
COPY tmp/bin ${GOBIN}
6+
COPY --chown=circleci tmp/bin/* ${GOBIN}/

Makefile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ GOPATH ?= $(shell go env GOPATH)
1111

1212
TMP_GOPATH ?= /tmp/thanos-go
1313
GOBIN ?= $(firstword $(subst :, ,${GOPATH}))/bin
14+
15+
# Promu is using this exact variable name, do not rename.
16+
PREFIX ?= $(GOBIN)
17+
1418
GO111MODULE ?= on
1519
export GO111MODULE
1620
GOPROXY ?= https://proxy.golang.org
@@ -104,8 +108,8 @@ react-app-start: $(REACT_APP_NODE_MODULES_PATH)
104108
.PHONY: build
105109
build: ## Builds Thanos binary using `promu`.
106110
build: check-git deps $(PROMU)
107-
@echo ">> building Thanos binary in $(GOBIN)"
108-
@$(PROMU) build --prefix $(GOBIN)
111+
@echo ">> building Thanos binary in $(PREFIX)"
112+
@$(PROMU) build --prefix $(PREFIX)
109113

110114
.PHONY: crossbuild
111115
crossbuild: ## Builds all binaries for all platforms.
@@ -121,8 +125,8 @@ deps: ## Ensures fresh go.mod and go.sum.
121125
.PHONY: docker
122126
docker: ## Builds 'thanos' docker with no tag.
123127
docker: build
124-
@echo ">> copying Thanos from $(GOBIN) to ./thanos_tmp_for_docker"
125-
@cp $(GOBIN)/thanos ./thanos_tmp_for_docker
128+
@echo ">> copying Thanos from $(PREFIX) to ./thanos_tmp_for_docker"
129+
@cp $(PREFIX)/thanos ./thanos_tmp_for_docker
126130
@echo ">> building docker image 'thanos'"
127131
@docker build -t "thanos" .
128132
@rm ./thanos_tmp_for_docker

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.12.2
1+
0.13.0

cmd/thanos/config.go

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,17 +112,23 @@ func (rc *reloaderConfig) registerFlag(cmd *kingpin.CmdClause) *reloaderConfig {
112112
}
113113

114114
type shipperConfig struct {
115-
uploadCompacted bool
116-
ignoreBlockSize bool
115+
uploadCompacted bool
116+
ignoreBlockSize bool
117+
allowOutOfOrderUpload bool
117118
}
118119

119120
func (sc *shipperConfig) registerFlag(cmd *kingpin.CmdClause) *shipperConfig {
120121
cmd.Flag("shipper.upload-compacted",
121-
"If true sidecar will try to upload compacted blocks as well. Useful for migration purposes. Works only if compaction is disabled on Prometheus. Do it once and then disable the flag when done.").
122+
"If true shipper will try to upload compacted blocks as well. Useful for migration purposes. Works only if compaction is disabled on Prometheus. Do it once and then disable the flag when done.").
122123
Default("false").BoolVar(&sc.uploadCompacted)
123124
cmd.Flag("shipper.ignore-unequal-block-size",
124-
"If true sidecar will not require prometheus min and max block size flags to be set to the same value. Only use this if you want to keep long retention and compaction enabled on your Prometheus instance, as in the worst case it can result in ~2h data loss for your Thanos bucket storage.").
125+
"If true shipper will not require prometheus min and max block size flags to be set to the same value. Only use this if you want to keep long retention and compaction enabled on your Prometheus instance, as in the worst case it can result in ~2h data loss for your Thanos bucket storage.").
125126
Default("false").Hidden().BoolVar(&sc.ignoreBlockSize)
127+
cmd.Flag("shipper.allow-out-of-order-uploads",
128+
"If true, shipper will skip failed block uploads in the given iteration and retry later. This means that some newer blocks might be uploaded sooner than older blocks."+
129+
"This can trigger compaction without those blocks and as a result will create an overlap situation. Set it to true if you have vertical compaction enabled and wish to upload blocks as soon as possible without caring"+
130+
"about order.").
131+
Default("false").Hidden().BoolVar(&sc.allowOutOfOrderUpload)
126132
return sc
127133
}
128134

cmd/thanos/receive.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ func registerReceive(m map[string]setupFunc, app *kingpin.Application) {
8989

9090
walCompression := cmd.Flag("tsdb.wal-compression", "Compress the tsdb WAL.").Default("true").Bool()
9191

92+
allowOutOfOrderUpload := cmd.Flag("shipper.allow-out-of-order-uploads",
93+
"If true, shipper will skip failed block uploads in the given iteration and retry later. This means that some newer blocks might be uploaded sooner than older blocks."+
94+
"This can trigger compaction without those blocks and as a result will create an overlap situation. Set it to true if you have vertical compaction enabled and wish to upload blocks as soon as possible without caring"+
95+
"about order.").
96+
Default("false").Hidden().Bool()
97+
9298
m[comp.String()] = func(g *run.Group, logger log.Logger, reg *prometheus.Registry, tracer opentracing.Tracer, _ <-chan struct{}, _ bool) error {
9399
lset, err := parseFlagLabels(*labelStrs)
94100
if err != nil {
@@ -157,6 +163,7 @@ func registerReceive(m map[string]setupFunc, app *kingpin.Application) {
157163
*replicationFactor,
158164
time.Duration(*forwardTimeout),
159165
comp,
166+
*allowOutOfOrderUpload,
160167
)
161168
}
162169
}
@@ -195,6 +202,7 @@ func runReceive(
195202
replicationFactor uint64,
196203
forwardTimeout time.Duration,
197204
comp component.SourceStoreAPI,
205+
allowOutOfOrderUpload bool,
198206
) error {
199207
logger = log.With(logger, "component", "receive")
200208
level.Warn(logger).Log("msg", "setting up receive; the Thanos receive component is EXPERIMENTAL, it may break significantly without notice")
@@ -246,6 +254,7 @@ func runReceive(
246254
lset,
247255
tenantLabelName,
248256
bkt,
257+
allowOutOfOrderUpload,
249258
)
250259
writer := receive.NewWriter(log.With(logger, "component", "receive-writer"), dbs)
251260
webHandler := receive.NewHandler(log.With(logger, "component", "receive-handler"), &receive.Options{

cmd/thanos/rule.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,12 @@ func registerRule(m map[string]setupFunc, app *kingpin.Application) {
114114
dnsSDResolver := cmd.Flag("query.sd-dns-resolver", "Resolver to use. Possible options: [golang, miekgdns]").
115115
Default("golang").Hidden().String()
116116

117+
allowOutOfOrderUpload := cmd.Flag("shipper.allow-out-of-order-uploads",
118+
"If true, shipper will skip failed block uploads in the given iteration and retry later. This means that some newer blocks might be uploaded sooner than older blocks."+
119+
"This can trigger compaction without those blocks and as a result will create an overlap situation. Set it to true if you have vertical compaction enabled and wish to upload blocks as soon as possible without caring"+
120+
"about order.").
121+
Default("false").Hidden().Bool()
122+
117123
m[comp.String()] = func(g *run.Group, logger log.Logger, reg *prometheus.Registry, tracer opentracing.Tracer, reload <-chan struct{}, _ bool) error {
118124
lset, err := parseFlagLabels(*labelStrs)
119125
if err != nil {
@@ -197,6 +203,7 @@ func registerRule(m map[string]setupFunc, app *kingpin.Application) {
197203
time.Duration(*dnsSDInterval),
198204
*dnsSDResolver,
199205
comp,
206+
*allowOutOfOrderUpload,
200207
)
201208
}
202209
}
@@ -283,6 +290,7 @@ func runRule(
283290
dnsSDInterval time.Duration,
284291
dnsSDResolver string,
285292
comp component.Component,
293+
allowOutOfOrderUpload bool,
286294
) error {
287295
metrics := newRuleMetrics(reg)
288296

@@ -610,7 +618,7 @@ func runRule(
610618
}
611619
}()
612620

613-
s := shipper.New(logger, reg, dataDir, bkt, func() labels.Labels { return lset }, metadata.RulerSource)
621+
s := shipper.New(logger, reg, dataDir, bkt, func() labels.Labels { return lset }, metadata.RulerSource, allowOutOfOrderUpload)
614622

615623
ctx, cancel := context.WithCancel(context.Background())
616624

cmd/thanos/sidecar.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,9 @@ func runSidecar(
275275

276276
var s *shipper.Shipper
277277
if conf.shipper.uploadCompacted {
278-
s = shipper.NewWithCompacted(logger, reg, conf.tsdb.path, bkt, m.Labels, metadata.SidecarSource)
278+
s = shipper.NewWithCompacted(logger, reg, conf.tsdb.path, bkt, m.Labels, metadata.SidecarSource, conf.shipper.allowOutOfOrderUpload)
279279
} else {
280-
s = shipper.New(logger, reg, conf.tsdb.path, bkt, m.Labels, metadata.SidecarSource)
280+
s = shipper.New(logger, reg, conf.tsdb.path, bkt, m.Labels, metadata.SidecarSource, conf.shipper.allowOutOfOrderUpload)
281281
}
282282

283283
return runutil.Repeat(30*time.Second, ctx.Done(), func() error {

docs/components/sidecar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Flags:
151151
details:
152152
https://thanos.io/storage.md/#configuration
153153
--shipper.upload-compacted
154-
If true sidecar will try to upload compacted
154+
If true shipper will try to upload compacted
155155
blocks as well. Useful for migration purposes.
156156
Works only if compaction is disabled on
157157
Prometheus. Do it once and then disable the

0 commit comments

Comments
 (0)