Skip to content

Commit

Permalink
Use OutOfOrderTimeWindow
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Rabenhorst <[email protected]>
  • Loading branch information
rabenhorst committed May 17, 2024
1 parent 31c67aa commit 157ec2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions cmd/prometheus/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -1216,7 +1216,7 @@ func main() {
"TruncateFrequency", cfg.agent.TruncateFrequency,
"MinWALTime", cfg.agent.MinWALTime,
"MaxWALTime", cfg.agent.MaxWALTime,
"RejectOOOSamples", cfg.agent.RejectOOOSamples,
"OutOfOrderTimeWindow", cfg.agent.OutOfOrderTimeWindow,
)

localStorage.Set(db, 0)
Expand Down Expand Up @@ -1709,7 +1709,6 @@ type agentOptions struct {
TruncateFrequency model.Duration
MinWALTime, MaxWALTime model.Duration
NoLockfile bool
RejectOOOSamples bool
OutOfOrderTimeWindow int64
}

Expand Down
2 changes: 1 addition & 1 deletion tsdb/agent/db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@ func TestDBAllowOOOSamples(t *testing.T) {
require.NoError(t, db.Close())
}

func TestDBRejectOOOSamples(t *testing.T) {
func TestDBOutOfOrderTimeWindow(t *testing.T) {
tc := []struct {
outOfOrderTimeWindow, firstTs, secondTs int64
reject bool
Expand Down

0 comments on commit 157ec2e

Please sign in to comment.