Bug 1312827

Summary: [intservice_public_171] Failed to show network metrics in web console
Product: OpenShift Container Platform Reporter: chunchen <chunchen>
Component: HawkularAssignee: Matt Wringe <mwringe>
Status: CLOSED CURRENTRELEASE QA Contact: chunchen <chunchen>
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: aos-bugs, mwringe, spadgett, tgummels, wsun
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-12 17:13:52 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-screenshot.png none

Description chunchen 2016-02-29 10:41:38 UTC
Description of problem:
The network metrics are not shown in the web console after deploying the metrics stack.

Version-Release number of selected component (if applicable):
devenv_rhel7_3555
latest metrics related images built from git repo( https://github.com/openshift/origin-metrics )

How reproducible:
always

Steps to Reproduce:
1. Build latest metrics related images from git repo
2. Deploy the metrics stack
3. Check the logs of running pods
4. Check the network metrics in the web console

Actual results:
3. No errors in all the metrics stack pods
4. No network metrics shown. Please refer to the screenshot in the attachment.

Expected results:
Should show network metrics in web console

Additional info:

Comment 1 Matt Wringe 2016-02-29 14:32:02 UTC
What version of OpenShift exactly?

Comment 2 Matt Wringe 2016-02-29 14:35:22 UTC
I don't believe there is anything in the console yet to display network metrics. They should be gathered by the system now, just not displayed in the console.

Also there was no screenshot attached, but I assume you could still see the cpu and memory metrics?

Comment 3 chunchen 2016-03-01 01:50:08 UTC
Created attachment 1131786 [details]
metrics-screenshot.png

Comment 4 chunchen 2016-03-01 01:57:41 UTC
(In reply to Matt Wringe from comment #2)
> I don't believe there is anything in the console yet to display network
> metrics. They should be gathered by the system now, just not displayed in
> the console.

Ah,sorry, I forgot to add the screenshot attachment yesterday, the screenshot is attached now. 

You mean we can check the network metrics from system log, like /var/log/messages* ?

> 
> Also there was no screenshot attached, but I assume you could still see the
> cpu and memory metrics?

Yes, the cpu and memory metrics are still shown well.

Comment 5 chunchen 2016-03-01 01:58:23 UTC
(In reply to Matt Wringe from comment #1)
> What version of OpenShift exactly?

openshift v1.1.3-319-g160c20f
kubernetes v1.2.0-alpha.7-703-gbc4550d
etcd 2.2.5

Comment 6 chunchen 2016-03-01 03:51:35 UTC
FYI, I can get network metrics for pods via heapster REST API, like below:

[chunchen@F17-CCY daily]$ curl -k -H "Authorization: Bearer `oc whoami -t`"  -X GET https://ec2-54-164-177-124.compute-1.amazonaws.com:8443/api/v1/proxy/namespaces/chunchen/services/https:heapster:/api/v1/model/namespaces/chunchen/pods/hawkular-metrics-ss2fx/metrics
[
  "cpu/request",
  "memory/working_set",
  "memory/major_page_faults_rate",
  "network/rx_errors",
  "network/tx_rate",
  "network/tx_errors_rate",
  "network/tx_errors",
  "network/rx_rate",
  "cpu/usage_rate",
  "memory/limit",
  "memory/request",
  "cpu/usage",
  "network/tx",
  "memory/page_faults_rate",
  "memory/major_page_faults",
  "cpu/limit",
  "memory/usage",
  "network/rx_errors_rate",
  "uptime",
  "memory/page_faults",
  "network/rx"

Comment 8 chunchen 2016-03-04 00:26:30 UTC
Mark it as verified according to comment #7.