Skip to content
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

Merged
merged 3 commits into from
Sep 16, 2024

Conversation

Vanshikav123
Copy link
Contributor

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

@Vanshikav123 Vanshikav123 marked this pull request as ready for review September 11, 2024 16:32
Copy link
Member

@bwplotka bwplotka left a 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()
Copy link
Member

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?

Copy link
Member

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!

Copy link
Contributor Author

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 !

@bwplotka bwplotka merged commit 8494cab into prometheus-community:main Sep 16, 2024
3 checks passed
prateeknayak pushed a commit to prateeknayak/avalanche that referenced this pull request Jan 2, 2025
…ometheus-community#68)

* changed implementation of shuffleTimeStamps


* resolving conflicts and improve test


---------
@bwplotka
Copy link
Member

bwplotka commented Feb 4, 2025

For the record, only now I noticed this change does not introduce OOO as we intended, see #128 (review)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants