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

feat(metrics): Configurable flush time shift #2349

Merged
merged 9 commits into from
Jul 25, 2023
Merged

Conversation

jjbayer
Copy link
Member

@jjbayer jjbayer commented Jul 25, 2023

We currently shift the flush time of each metrics bucket by an offset based on the project key. This prevents large peaks every interval, but still allows flushing buckets from the same projects together, which makes sense especially when the buckets are then sent to the upstream in per-project envelopes.

With span metrics, we have seen that even buckets from the same project can cause a lot of traffic. With #2341, we want to increase the bucket interval for span metrics to one minute. To prevent large, project-specific peaks for span metrics, allow configuring a more random distribution over time.

This should be used only in processing Relays where buckets are sent via Kafka.

@jjbayer jjbayer marked this pull request as ready for review July 25, 2023 09:23
@jjbayer jjbayer requested a review from a team July 25, 2023 09:23
@jjbayer jjbayer enabled auto-merge (squash) July 25, 2023 14:56
@jjbayer jjbayer merged commit aae44c0 into master Jul 25, 2023
@jjbayer jjbayer deleted the feat/metrics-shift-config branch July 25, 2023 15:08
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