-
Notifications
You must be signed in to change notification settings - Fork 592
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
OCPBUGS-12857: Add NaN handling for Stacked Graphs #13712
OCPBUGS-12857: Add NaN handling for Stacked Graphs #13712
Conversation
@PeterYurkovich: This pull request references Jira Issue OCPBUGS-12854, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
@PeterYurkovich: This pull request references Jira Issue OCPBUGS-12857, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
/jira refresh |
@PeterYurkovich: This pull request references Jira Issue OCPBUGS-12857, which is invalid:
Comment In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
/jira refresh |
@PeterYurkovich: This pull request references Jira Issue OCPBUGS-12857, which is invalid:
Comment In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
/jira refresh |
@PeterYurkovich: This pull request references Jira Issue OCPBUGS-12857, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
Requesting review from QA contact: In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
@PeterYurkovich: This pull request references Jira Issue OCPBUGS-12857, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
@PeterYurkovich: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/lgtm |
test along with along with openshift/monitoring-plugin#111, stacked Graphs is handling NaN well, steps see from https://issues.redhat.com/browse/OCPBUGS-12857 |
/label qe-approved |
/assign @kyoto |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jgbernalp, kyoto, PeterYurkovich The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@PeterYurkovich: Jira Issue OCPBUGS-12857: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-12857 has been moved to the MODIFIED state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
[ART PR BUILD NOTIFIER] This PR has been included in build openshift-enterprise-console-container-v4.16.0-202404181209.p0.gbd85036.assembly.stream.el9 for distgit openshift-enterprise-console. |
Issue:
https://issues.redhat.com/browse/OCPBUGS-12857
Analysis / Root cause:
There is a bug in stacked graphs for Victory charts for React. The bug occurs in their victory-stack package. An issue has been made and can be tracked FormidableLabs/victory#2844.
The root issue is a dataset which has dates in the x field and all null's in the y field. This causes a error to be thrown in the VictoryCharts, and leaves the chart looking like so:
Solution Description:
To get around this, for stacked charts we will be converting any NaN's returned from Prometheus to 0 rather than null. In order to help dashboard creators and power users to debug any problematic queries, we are also adding a console.warn to let them know about this conversion, while still showing the graph otherwise. This bug is being opened both here for the developer ta as well as in the monitoring-plugin repo for the admin tab openshift/monitoring-plugin#111
Screen shots:
Dashboard After Fix:
Test setup:
In order to test this PR, it is necessary to create a chart which responds with NaN values from Prometheus. To accomplish this we recreate one of the original locations that this bug was found, by applying an incomplete resource quota and then adding a dashboard with a stacked graph. After this bug was found, the original location has changed to being a line chart rather than a stacked chart. As such it is necessary to add both the resource quota and dashboard to reproduce the bug and then show the fix.
Resource Quota
Add the following Resource Quota to a namespace:
Reproduction Dashboard
Add the following dashboard to your cluster
Tested Browsers