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(stoneintg-564): ignore empty values #317

Merged
merged 1 commit into from
Sep 18, 2023

Conversation

14rcole
Copy link
Collaborator

@14rcole 14rcole commented Sep 14, 2023

Previously empty values in the violations graphs were reported as zero. This is because in order to calculate the percentage of requests meeting our thresholds we divide the "good" requests by the total requests. If there are no total requests then grafana sets 0/0 to 0 rather than dividing by 0. This change ignores the empty values and changes the display from a line to bars to improve readability.

Maintainers will complete the following section

  • Commit messages are descriptive enough (hints)
  • Code coverage from testing does not decrease and new code is covered
  • Controllers diagrams are updated when PR changes controllers code (if applicable)

Copy link
Collaborator

@MartinBasti MartinBasti left a comment

Choose a reason for hiding this comment

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

This PR updates one SLO, but we have at least two SLOs

Previously empty values in the violations graphs were reported as
zero.  This is because in order to calculate the percentage of
requests meeting our thresholds we divide the "good" requests by the
total requests.  If there are no total requests then grafana sets
0/0 to 0 rather than dividing by 0.  This change ignores the empty
values and changes the display from a line to bars to improve
readability.

Signed-off-by: Ryan Cole <[email protected]>
@14rcole
Copy link
Collaborator Author

14rcole commented Sep 15, 2023

Five years and I still can't commit things properly. Fixed now, I double-checked and I only saw those two SLOs having this issue

@openshift-ci openshift-ci bot added the lgtm label Sep 15, 2023
Copy link
Contributor

@jinqi7 jinqi7 left a comment

Choose a reason for hiding this comment

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

LGTM

@14rcole 14rcole merged commit d662cf6 into konflux-ci:main Sep 18, 2023
8 checks passed
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.

3 participants