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 OTEL alerts query #1818

Merged
merged 1 commit into from
Oct 4, 2024
Merged

Fix OTEL alerts query #1818

merged 1 commit into from
Oct 4, 2024

Conversation

thampiotr
Copy link
Contributor

PR Description

This is a fix to yet unreleased change to OTEL alerts queries that was added in this PR: #1721

There was a mistake in original PR: we were calculating the failure rate of each time series and then doing sum by (cluster, namespace, job) on these, so if we had 200 instances with 1% failure rate, we would end up with 200% failure rate.

Instead we should sum by (cluster, namespace, job) for the nominator (number of failures) and the denominator (total number of events) to get a correct SR for the entire cluster/namespace/job.

Which issue(s) this PR fixes

Notes to the Reviewer

PR Checklist

  • CHANGELOG.md updated
  • Documentation added
  • Tests updated
  • Config converters updated

@thampiotr thampiotr force-pushed the thampiotr/fix-otel-alert-query branch from abfea5b to b0af58a Compare October 3, 2024 14:52
@thampiotr thampiotr marked this pull request as ready for review October 3, 2024 14:53
@thampiotr thampiotr requested a review from a team as a code owner October 3, 2024 14:53
Copy link
Collaborator

@mattdurham mattdurham left a comment

Choose a reason for hiding this comment

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

lgtm

@thampiotr thampiotr merged commit 8417042 into main Oct 4, 2024
18 checks passed
@thampiotr thampiotr deleted the thampiotr/fix-otel-alert-query branch October 4, 2024 09:15
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