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: skip first record only for rate metrics #3609

Merged
merged 1 commit into from
Sep 22, 2023
Merged

Conversation

srikanthccv
Copy link
Member

Currently, the threshold rule logic skips the first sample of the result regardless of the type of operator and source. The original intention was to skip the rate queries only as the first sample rate is incorrect. This commit updates the logic to skip only when the data source is metric and the operator is rate kind. if the sample shouldn't be skipped !r.shouldSkipFirstRecord() then the first sample is directly added to resultMap.

@github-actions github-actions bot added the bug Something isn't working label Sep 22, 2023
@github-actions
Copy link

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

@srikanthccv srikanthccv merged commit 043e5ca into develop Sep 22, 2023
7 of 8 checks passed
@srikanthccv srikanthccv deleted the do-not-skip-first branch September 22, 2023 10:13
manishm pushed a commit to manishm/SIGFOR that referenced this pull request Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants