Bug 1375676 - metrics: line not rendered on x-axis just before leaving 0 and after returning to 0
Summary: metrics: line not rendered on x-axis just before leaving 0 and after returni...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 3.3.0
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
: ---
Assignee: Samuel Padgett
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-13 16:25 UTC by Mike Fiedler
Modified: 2019-06-04 20:09 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-06-04 20:09:07 UTC
Target Upstream Version:


Attachments (Terms of Use)
Metrics (26.14 KB, image/png)
2016-09-13 16:25 UTC, Mike Fiedler
no flags Details

Description Mike Fiedler 2016-09-13 16:25:38 UTC
Created attachment 1200562 [details]
Metrics

Description of problem:

There are breaks in the metrics graph just before and after a metric value changes from 0 to non-zero and then back again.


Version-Release number of selected component (if applicable): 3.3.0.30


How reproducible: Always


Steps to Reproduce:
1. Install OpenShift with metrics enabled
2. Create some hello-openshift pods
3. Periodically hit the pods with curl
4. View metrics for the pods

Actual results:

See attached image


Expected results:

It seems and unbroken line would be more correct.

Comment 1 Jessica Forrester 2016-09-13 16:45:21 UTC
This a known side effect of using splines, which otherwise look much better than  plain line graphs.

Comment 2 Samuel Padgett 2016-09-13 16:59:54 UTC
Some background from c3.js.

https://github.com/c3js/c3/issues/479
https://github.com/c3js/c3/issues/1608

We might be able to use a different interpolation option.

https://github.com/c3js/c3/pull/1268

Comment 3 Samuel Padgett 2016-09-13 18:16:09 UTC
Looked at this a bit. None of the out-of-the-box interpolation types prevent values dipping below 0. "monotone" helped in some cases, but not all. We'd need to write a custom interpolation function or go back to a line chart to fix this completely.

Comment 4 Samuel Padgett 2019-06-04 20:09:07 UTC
We've changed charting libraries in 4.1 to plotly, which does not have this issue. We do not plan to update the charts in the 3.x.


Note You need to log in before you can comment on or make changes to this bug.