-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Out-of-order Flag : Added option for sending out of order samples #68
Conversation
Signed-off-by: Vanshikav123 <[email protected]>
Signed-off-by: Vanshika <[email protected]>
Signed-off-by: Vanshikav123 <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just one suggestion, thanks!
@@ -55,6 +55,7 @@ var ( | |||
remoteTenant = kingpin.Flag("remote-tenant", "Tenant ID to include in remote_write send").Default("0").String() | |||
tlsClientInsecure = kingpin.Flag("tls-client-insecure", "Skip certificate check on tls connection").Default("false").Bool() | |||
remoteTenantHeader = kingpin.Flag("remote-tenant-header", "Tenant ID to include in remote_write send. The default, is the default tenant header expected by Cortex.").Default("X-Scope-OrgID").String() | |||
outOfOrder = kingpin.Flag("out-of-order", "Enable out-of-order timestamps in remote write requests").Default("true").Bool() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
One idea, instead of a bool should we have a flag like out-of-order.min-time
which would control the minimum time this can go back in time?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's fine to do it in another PR though, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okkay! i will raise another PR for that. thank you !
…ometheus-community#68) * changed implementation of shuffleTimeStamps * resolving conflicts and improve test ---------
For the record, only now I noticed this change does not introduce OOO as we intended, see #128 (review) |
Default value of flag is setup to true
run command
./avalanche --remote-url=http://localhost:9090/api/v1/write --out-of-order
to send samples with out-of-order enabled