Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1623768

Summary: Metrics diagrams are not fit for the "Pods" page
Product: OpenShift Container Platform Reporter: Junqi Zhao <juzhao>
Component: MonitoringAssignee: Frederic Branczyk <fbranczy>
Status: CLOSED NOTABUG QA Contact: Junqi Zhao <juzhao>
Severity: low Docs Contact:
Priority: medium    
Version: 3.11.0CC: fbranczy, minden
Target Milestone: ---Keywords: Regression
Target Release: 3.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-11 10:24:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Metrics diagrams are not fit for the "Pods" page
none
JS error none

Description Junqi Zhao 2018-08-30 07:31:57 UTC
Created attachment 1479692 [details]
Metrics diagrams are not fit for the "Pods" page

Description of problem:
login grafana UI, and select "Pods" to check metrics diagrams, Metrics diagrams are not fit for the "Pods" page, the diagrams are too small

inspect the page, althouth there is "Failed to load resource: the server responded with a status of 500 (Internal Server Error)" for
https://grafana-openshift-monitoring.apps.0830-385.qe.rhcloud.com/api/datasources/proxy/1/api/v1/query_range?query=node%3Anode_cpu_utilisation%3Aavg1m%20*%20node%3Anode_num_cpu%3Asum%20%2F%20scalar(sum(node%3Anode_num_cpu%3Asum))&start=1535605890&end=1535609520&step=30
actually it could be accessed.

The error maybe in JS file
Error: Invalid dimensions for plot, width = 0, height = 0
    at e.resize (/public/build/0.950b64c220f766b8b5f3.js:1)
    at new e (/public/build/0.950b64c220f766b8b5f3.js:1)
    at /public/build/0.950b64c220f766b8b5f3.js:1
    at new n (/public/build/0.950b64c220f766b8b5f3.js:1)
    at Function.t.plot (/public/build/0.950b64c220f766b8b5f3.js:1)
    at c (/public/build/0.950b64c220f766b8b5f3.js:7)
    at h (/public/build/0.950b64c220f766b8b5f3.js:7)
    at o.<anonymous> (/public/build/0.950b64c220f766b8b5f3.js:7)
    at o.emit (vendor.950b64c220f766b8b5f3.js:44)
    at e.emit (app.950b64c220f766b8b5f3.js:1)
    at e.t.render (/public/build/0.950b64c220f766b8b5f3.js:1) "Possibly unhandled rejection: {}"
(anonymous) @ vendor.950b64c220f766b8b5f3.js:87
vendor.950b64c220f766b8b5f3.js:87 Error: Invalid dimensions for plot, width = 0, height = 0
    at e.resize (/public/build/0.950b64c220f766b8b5f3.js:1)
    at new e (/public/build/0.950b64c220f766b8b5f3.js:1)
    at /public/build/0.950b64c220f766b8b5f3.js:1
    at new n (/public/build/0.950b64c220f766b8b5f3.js:1)
    at Function.t.plot (/public/build/0.950b64c220f766b8b5f3.js:1)
    at c (/public/build/0.950b64c220f766b8b5f3.js:7)
    at h (/public/build/0.950b64c220f766b8b5f3.js:7)
    at o.<anonymous> (/public/build/0.950b64c220f766b8b5f3.js:7)
    at o.emit (vendor.950b64c220f766b8b5f3.js:44)
    at e.emit (app.950b64c220f766b8b5f3.js:1)
    at e.t.render (/public/build/0.950b64c220f766b8b5f3.js:1)
(anonymous) @ vendor.950b64c220f766b8b5f3.js:87

Version-Release number of selected component (if applicable):
cluster monitoring images version
v3.11.0-0.25.0.0

# openshift version
openshift v3.11.0-0.25.0


How reproducible:
Always

Steps to Reproduce:
1. login grafana UI, and select "Pods" to check metrics diagrams
2.
3.

Actual results:
Metrics diagrams are not fit for the "Pods" page

Expected results:
Metrics diagrams are fit for the "Pods" page

Additional info:

Comment 1 Junqi Zhao 2018-08-30 07:32:45 UTC
Created attachment 1479693 [details]
JS error

Comment 2 Junqi Zhao 2018-09-11 06:26:37 UTC
I see the following three confimaps are removed from recently change:
grafana-dashboard-nodes, grafana-dashboard-pods, grafana-dashboard-statefulset

# oc get cm -n openshift-monitoring 
NAME                                        DATA      AGE
cluster-monitoring-config                   1         34m
grafana-dashboard-k8s-cluster-rsrc-use      1         33m
grafana-dashboard-k8s-node-rsrc-use         1         33m
grafana-dashboard-k8s-resources-cluster     1         33m
grafana-dashboard-k8s-resources-namespace   1         33m
grafana-dashboard-k8s-resources-pod         1         33m
grafana-dashboards                          1         33m
prometheus-k8s-rulefiles-0                  1         33m

If the change is expected, then there will not be "Nodes", "Pods" and "StatefulSets" page in grafana UI. Then this defect could be closed as NOTABUG

Image:
grafana-v3.11.0-0.32.0.0

Comment 3 Frederic Branczyk 2018-09-11 10:24:06 UTC
Yes that was intentional, as those dashboards are of poor quality and had a lot of duplicate information with the remaining dashboards. We prefer just shipping the high quality dashboards instead and will extend them in future releases with information currently not available.