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

chore: disallow small step intervals for large durations #4950

Merged
merged 3 commits into from
May 1, 2024

Conversation

srikanthccv
Copy link
Member

Summary

Part of #4943

This change makes the query service override the small step interval values with the reasonable step interval based on the selected time range. Even if someone sends a 60s step for one week, we replace it with 1980 i.e. 33 minutes. This prevents memory issues in ClickHouse. Also fixes the average bug in threshold rules.

@github-actions github-actions bot added the chore label May 1, 2024
@srikanthccv srikanthccv marked this pull request as ready for review May 1, 2024 09:57
@srikanthccv srikanthccv merged commit 27d1287 into develop May 1, 2024
12 checks passed
@srikanthccv srikanthccv deleted the disallow-small-step-interval branch May 1, 2024 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants