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

Fix counter reset for rate function #482

Merged
merged 1 commit into from
Aug 15, 2024

Conversation

fpetkovski
Copy link
Collaborator

There is a subtle bug with the rate calculation where we record a counter reset even when the previous sample falls outside of the rate window. This leads to spurious spikes in results, especially when the step is larger than the rate interval.

There is a subtle bug with the rate calculation where we record
a counter reset even when the previous sample falls outside of the
rate window. This leads to spurious spikes in results, especially
when the step is larger than the rate interval.

Signed-off-by: Filip Petkovski <[email protected]>
Copy link
Contributor

@MichaHoffmann MichaHoffmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@fpetkovski fpetkovski merged commit b81bd85 into thanos-io:main Aug 15, 2024
7 checks passed
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