Skip to content

Commit

Permalink
Fix flag names
Browse files Browse the repository at this point in the history
  • Loading branch information
povilasv committed May 20, 2019
1 parent a653cbd commit d8e84f5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ We use *breaking* word for marking changes that are not backward compatible (rel

### Added

- [#1077](https://github.com/improbable-eng/thanos/pull/1077) Thanos Store gateway now supports time & duration based partitioning using `--min-time` & `--max-time` flags. Flags can be set to constant time in RFC3339 format or time duration relative to current time, such as -1.5d or 2h45m. Valid duration units are ms, s, m, h, d, w, y.
- [#1077](https://github.com/improbable-eng/thanos/pull/1077) Thanos Store gateway now supports time & duration based partitioning using `--min-block-start-time` & `--max-block-start-time` flags. Flags can be set to constant time in RFC3339 format or time duration relative to current time, such as -1.5d or 2h45m. Valid duration units are ms, s, m, h, d, w, y. Checkout Store documentation for more info.
- [#1094](https://github.com/improbable-eng/thanos/pull/1094) Allow configuring the response header timeout for the S3 client.

### Changed
Expand Down
8 changes: 4 additions & 4 deletions cmd/thanos/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,16 @@ func registerStore(m map[string]setupFunc, app *kingpin.Application, name string
blockSyncConcurrency := cmd.Flag("block-sync-concurrency", "Number of goroutines to use when syncing blocks from object storage.").
Default("20").Int()

minBlockStartTime := model.TimeOrDuration(cmd.Flag("--min-block-start-time", "Start of time range limit to serve. Thanos Store serves only blocks, which have start time greater than this value. Option can be a constant time in RFC3339 format or time duration relative to current time, such as -1.5d or 2h45m. Valid duration units are ms, s, m, h, d, w, y.").
minBlockStartTime := model.TimeOrDuration(cmd.Flag("min-block-start-time", "Start of time range limit to serve. Thanos Store serves only blocks, which have start time greater than this value. Option can be a constant time in RFC3339 format or time duration relative to current time, such as -1.5d or 2h45m. Valid duration units are ms, s, m, h, d, w, y.").
Default("0000-01-01T00:00:00Z"))

maxBlockStartTime := model.TimeOrDuration(cmd.Flag("--max-block-start-time", "End of time range limit to serve. Thanos Store serves only blocks, which have start time is less than this value. Option can be a constant time in RFC3339 format or time duration relative to current time, such as -1.5d or 2h45m. Valid duration units are ms, s, m, h, d, w, y.").
Default("9999-12-31T23:59:59Z"))

minBlockEndTime := model.TimeOrDuration(cmd.Flag("--min-block-end-time", "Start of time range limit to serve. Thanos Store serves only blocks, which have end time greater than this value. Option can be a constant time in RFC3339 format or time duration relative to current time, such as -1.5d or 2h45m. Valid duration units are ms, s, m, h, d, w, y.").
minBlockEndTime := model.TimeOrDuration(cmd.Flag("min-block-end-time", "Start of time range limit to serve. Thanos Store serves only blocks, which have end time greater than this value. Option can be a constant time in RFC3339 format or time duration relative to current time, such as -1.5d or 2h45m. Valid duration units are ms, s, m, h, d, w, y.").
Default("0000-01-01T00:00:00Z"))

maxBlockEndTime := model.TimeOrDuration(cmd.Flag("--max-block-end-time", "End of time range limit to serve. Thanos Store serves only blocks, which have end time is less than this value. Option can be a constant time in RFC3339 format or time duration relative to current time, such as -1.5d or 2h45m. Valid duration units are ms, s, m, h, d, w, y.").
maxBlockEndTime := model.TimeOrDuration(cmd.Flag("max-block-end-time", "End of time range limit to serve. Thanos Store serves only blocks, which have end time is less than this value. Option can be a constant time in RFC3339 format or time duration relative to current time, such as -1.5d or 2h45m. Valid duration units are ms, s, m, h, d, w, y.").
Default("9999-12-31T23:59:59Z"))

m[name] = func(g *run.Group, logger log.Logger, reg *prometheus.Registry, tracer opentracing.Tracer, debugLogging bool) error {
Expand All @@ -70,7 +70,7 @@ func registerStore(m map[string]setupFunc, app *kingpin.Application, name string
return errors.Wrap(err, "new cluster peer")
}

// Sanity check Time limits
// Sanity check Time filters
switch {
case minBlockStartTime.PrometheusTimestamp() > maxBlockStartTime.PrometheusTimestamp():
return errors.Errorf("invalid argument: --min-block-start-time '%s' can't be greater than --max-block-start-time '%s'", minBlockStartTime, maxBlockStartTime)
Expand Down
6 changes: 3 additions & 3 deletions docs/components/store.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ Flags:
--block-sync-concurrency=20
Number of goroutines to use when syncing blocks
from object storage.
----min-block-start-time=0000-01-01T00:00:00Z
--min-block-start-time=0000-01-01T00:00:00Z
Start of time range limit to serve. Thanos
Store serves only blocks, which have start time
greater than this value. Option can be a
Expand All @@ -156,15 +156,15 @@ Flags:
relative to current time, such as -1.5d or
2h45m. Valid duration units are ms, s, m, h, d,
w, y.
----min-block-end-time=0000-01-01T00:00:00Z
--min-block-end-time=0000-01-01T00:00:00Z
Start of time range limit to serve. Thanos
Store serves only blocks, which have end time
greater than this value. Option can be a
constant time in RFC3339 format or time
duration relative to current time, such as
-1.5d or 2h45m. Valid duration units are ms, s,
m, h, d, w, y.
----max-block-end-time=9999-12-31T23:59:59Z
--max-block-end-time=9999-12-31T23:59:59Z
End of time range limit to serve. Thanos Store
serves only blocks, which have end time is less
than this value. Option can be a constant time
Expand Down

0 comments on commit d8e84f5

Please sign in to comment.