You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
REPLICATOR: Add TimePartitionMetaFilter to thanos replicate. (thanos-io#2979)
* Add TimePartitionMetaFilter to thanos replicate.
This will allow time based replication.
Signed-off-by: Kevin Hellemun <[email protected]>
* Update docs and changelog.
Signed-off-by: Kevin Hellemun <[email protected]>
* Fix lint
Signed-off-by: Kevin Hellemun <[email protected]>
* Add posibility to delete blocks older than max time
Signed-off-by: Kevin Hellemun <[email protected]>
* Fix metric naming.
Signed-off-by: Kevin Hellemun <[email protected]>
* Fix order of arguments for max and min time.
Signed-off-by: Kevin Hellemun <[email protected]>
* Remove deletion of blocks from replicator.
Signed-off-by: Kevin Hellemun <[email protected]>
* Fix import formatting
Signed-off-by: Kevin Hellemun <[email protected]>
* Revert unneeded changes due to replicator no longer deleting blocs
Signed-off-by: Kevin Hellemun <[email protected]>
* Fix typo
Signed-off-by: Kevin Hellemun <[email protected]>
Signed-off-by: Oghenebrume50 <[email protected]>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,7 @@ We use *breaking :warning:* to mark changes that are not backward compatible (re
22
22
-[#3312](https://github.com/thanos-io/thanos/pull/3312) s3: add list_objects_version config option for compatibility.
23
23
-[#3356](https://github.com/thanos-io/thanos/pull/3356) Query Frontend: Add a flag to disable step alignment middleware for query range.
24
24
-[#3378](https://github.com/thanos-io/thanos/pull/3378) Ruler: added the ability to send queries via the HTTP method POST. Helps when alerting/recording rules are extra long because it encodes the actual parameters inside of the body instead of the URI. Thanos Ruler now uses POST by default unless `--query.http-method` is set `GET`.
25
+
-[#2979](https://github.com/thanos-io/thanos/pull/2979) Replicator: Add the ability to replicate blocks within a time frame by passing --min-time and --max-time
25
26
26
27
### Fixed
27
28
-[#3257](https://github.com/thanos-io/thanos/pull/3257) Ruler: Prevent Ruler from crashing when using default DNS to lookup hosts that results in "No such hosts" errors.
compactions:=cmd.Flag("compaction", "Only blocks with these compaction levels will be replicated. Repeated flag.").Default("1", "2", "3", "4").Ints()
445
446
matcherStrs:=cmd.Flag("matcher", "Only blocks whose external labels exactly match this matcher will be replicated.").PlaceHolder("key=\"value\"").Strings()
446
447
singleRun:=cmd.Flag("single-run", "Run replication only one time, then exit.").Default("false").Bool()
448
+
minTime:=model.TimeOrDuration(cmd.Flag("min-time", "Start of time range limit to replicate. Thanos Replicate will replicate only metrics, which happened later than this value. Option can be a constant time in RFC3339 format or time duration relative to current time, such as -1d or 2h45m. Valid duration units are ms, s, m, h, d, w, y.").
449
+
Default("0000-01-01T00:00:00Z"))
450
+
maxTime:=model.TimeOrDuration(cmd.Flag("max-time", "End of time range limit to replicate. Thanos Replicate will replicate only metrics, which happened earlier than this value. Option can be a constant time in RFC3339 format or time duration relative to current time, such as -1d or 2h45m. Valid duration units are ms, s, m, h, d, w, y.").
0 commit comments