Skip to content

Out-of-order Flag : Added option for sending out of order samples#68

Merged
bwplotka merged 3 commits intoprometheus-community:mainfrom
Vperiodt:patch-lfx
Sep 16, 2024
Merged

Out-of-order Flag : Added option for sending out of order samples#68
bwplotka merged 3 commits intoprometheus-community:mainfrom
Vperiodt:patch-lfx

Conversation

@Vperiodt
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

Vperiodt and others added 3 commits July 17, 2024 13:37
Signed-off-by: Vanshikav123 <vanshikav928@gmail.com>
Signed-off-by: Vanshika <102902652+Vanshikav123@users.noreply.github.com>
Signed-off-by: Vanshikav123 <vanshikav928@gmail.com>
@Vperiodt Vperiodt 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!

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
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