Repository navigation
chore: increase max buckets for alerts timeseries - #7641
Merged
Merged
Conversation
nikkikapadia
marked this pull request as ready for review
January 15, 2026 19:27
phacops
approved these changes
Jan 15, 2026
nikkikapadia
added a commit
to getsentry/sentry
that referenced
this pull request
Jan 16, 2026
follow up to this pr: getsentry/snuba#7641 Basically fixing the issue where alerts timeseries charts with 7d period and 1m interval receive a code 500 from the events-stats endpoint due to number of buckets being over the max. [Sentry issue](https://sentry.sentry.io/issues/7084207705/?project=1&query=is%3Aunresolved%20user.email%3Awilliam.mak%40sentry.io&referrer=issue-stream) and [alert example ](https://sentry.sentry.io/monitors/2809118/?project=-1&statsPeriod=7d) We're changing the constants here to stay consistent with the snuba constants Closes [EXP-700](https://linear.app/getsentry/issue/EXP-700/events-stats-buckets-going-over-max-for-1m-interval)
BYK
pushed a commit
to getsentry/sentry
that referenced
this pull request
Jan 19, 2026
follow up to this pr: getsentry/snuba#7641 Basically fixing the issue where alerts timeseries charts with 7d period and 1m interval receive a code 500 from the events-stats endpoint due to number of buckets being over the max. [Sentry issue](https://sentry.sentry.io/issues/7084207705/?project=1&query=is%3Aunresolved%20user.email%3Awilliam.mak%40sentry.io&referrer=issue-stream) and [alert example ](https://sentry.sentry.io/monitors/2809118/?project=-1&statsPeriod=7d) We're changing the constants here to stay consistent with the snuba constants Closes [EXP-700](https://linear.app/getsentry/issue/EXP-700/events-stats-buckets-going-over-max-for-1m-interval)
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We initially increased the max timeseries buckets in this PR: #7482
But the number of buckets was still higher than this value and is throwing errors on alerts/monitors like this one. This was the error snuba was throwing: https://sentry.sentry.io/issues/7084207705/?project=1&query=is%3Aunresolved%20user.email%3Awilliam.mak%40sentry.io&referrer=issue-stream
Seems like the quantizing the timeseries range is resulting in varying bucket numbers. We're increasing the max buckets a little more to account for any of these quantizing discrepancies.