Skip to content

Commit 66ed8b8

Browse files
tgxworldbwplotka
authored andcommitted
Rename Store component's tsdb.path -> data-dir. (thanos-io#503)
1 parent be9ec82 commit 66ed8b8

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

cmd/thanos/store.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func registerStore(m map[string]setupFunc, app *kingpin.Application, name string
2828

2929
grpcBindAddr, httpBindAddr, newPeerFn := regCommonServerFlags(cmd)
3030

31-
dataDir := cmd.Flag("tsdb.path", "Data directory of TSDB.").
31+
dataDir := cmd.Flag("data-dir", "Data directory in which to cache remote blocks.").
3232
Default("./data").String()
3333

3434
gcsBucket := cmd.Flag("gcs.bucket", "Google Cloud Storage bucket name for stored blocks. If empty sidecar won't store any block inside Google Cloud Storage.").

docs/components/store.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Flags:
8080
configurations. Sets of configurations
8181
accounting the latency differences between
8282
network types: local, lan, wan.
83-
--tsdb.path="./data" Data directory of TSDB.
83+
--data-dir="./data" Data directory in which to cache remote blocks.
8484
--gcs.bucket=<bucket> Google Cloud Storage bucket name for stored
8585
blocks. If empty sidecar won't store any block
8686
inside Google Cloud Storage.

docs/getting_started.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Thanos integrates with existing Prometheus servers through a sidecar process, wh
3030

3131
The sidecar is responsible for backing up data into an object storage bucket and providing querying access to the underlying Prometheus instance for other Thanos components.
3232

33-
### Backups
33+
### Backups
3434

3535
The following configures the sidecar to backup data into a Google Cloud Storage bucket.
3636

@@ -199,7 +199,7 @@ Just like sidecars and query nodes, the store gateway joins the gossip cluster a
199199

200200
```
201201
thanos store \
202-
--tsdb.path /var/thanos/store \ # Disk space for local caches
202+
--data-dir /var/thanos/store \ # Disk space for local caches
203203
--gcs.bucket example-bucket \ # Bucket to fetch data from
204204
--cluster.address 0.0.0.0:19891 \
205205
--cluster.advertise-address 127.0.0.1:19891 \

kube/manifests/thanos-store.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ spec:
2828
args:
2929
- "store"
3030
- "--log.level=debug"
31-
- "--tsdb.path=/var/thanos/store"
31+
- "--data-dir=/var/thanos/store"
3232
- "--cluster.peers=thanos-peers.default.svc.cluster.local:10900"
3333
# NOTE: This is required to be added in GCS prior startup of this.
3434
- "--gcs.bucket=<bucket-name>"

scripts/quickstart.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ then
103103
--log.level debug \
104104
--grpc-address 0.0.0.0:19691 \
105105
--http-address 0.0.0.0:19791 \
106-
--tsdb.path data/store \
106+
--data-dir data/store \
107107
--gcs.bucket "${GCS_BUCKET}" \
108108
--cluster.address 0.0.0.0:19891 \
109109
--cluster.advertise-address 127.0.0.1:19891 \

0 commit comments

Comments
 (0)