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: Generate correct value for SLI even if there are no metrics available (div/0) #677

Merged
merged 2 commits into from
Oct 4, 2024

Conversation

sponte
Copy link
Contributor

@sponte sponte commented Sep 26, 2024

Purpose of pull request

Some SLIs fail to generate a valid metric when there is no data. This PR protects from that behaviour by defaulting to no failures if the data is not available.

Copy link
Contributor

@michaelpearsonHO michaelpearsonHO left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@michaelpearsonHO michaelpearsonHO left a comment

Choose a reason for hiding this comment

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

LGTM part 2

@sponte sponte merged commit c188ed8 into main Oct 4, 2024
8 checks passed
@sponte sponte deleted the feature/sw-adjust-sli-protect-from-division-by-0 branch October 4, 2024 14:07
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