Bug 1518736

Summary: decbytes and bytes on dashboards
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Lubos Trilety <ltrilety>
Component: web-admin-tendrl-monitoring-integrationAssignee: Ankush Behl <anbehl>
Status: CLOSED ERRATA QA Contact: Filip Balák <fbalak>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rhgs-3.3CC: fbalak, nthomas, rhs-bugs
Target Milestone: ---   
Target Release: RHGS 3.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tendrl-ansible-1.6.1-2.el7rhgs.noarch.rpm, tendrl-api-1.6.1-1.el7rhgs.noarch.rpm, tendrl-commons-1.6.1-1.el7rhgs.noarch.rpm, tendrl-monitoring-integration-1.6.1-1.el7rhgs.noarch.rpm, tendrl-node-agent-1.6.1-1.el7, tendrl-ui-1.6.1-1.el7rhgs.noarch.rpm, Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-04 06:59:21 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:
Bug Depends On:    
Bug Blocks: 1503134    

Description Lubos Trilety 2017-11-29 14:22:23 UTC
Description of problem:
There's ambiguity in uses of decimal and binary metric for capacity in Grafana as both are used:

E.g.
tendrl-gluster-bricks.json
"The Capacity Available panel displays the available capacity for a given volume."
uses binary metric powers of 1024 - "format": "bytes", while
"The Weekly Growth Rate panel displays the forecasted weekly growth rate for capacity utilization computed based on daily capacity utilization."
uses decimal pwers of 1000 - "format": "decbytes"


Version-Release number of selected component (if applicable):
tendrl-monitoring-integration-1.5.4-8.el7rhgs.noarch

How reproducible:
100%

Steps to Reproduce:
1. Install tendrl-monitoring-integration package
2. Look on json files in /etc/tendrl/monitoring-integration/grafana/dashboards/ directory

Actual results:
bytes, kbytes and decbytes is used for capacity metrics

Expected results:
Only decimal or binary metric should be used for any capacity metric. It should be unified on all dashboards.

Additional info:

Comment 1 Nishanth Thomas 2017-11-29 14:32:53 UTC
Not critical to address at the point of time. Proposing to move out to a future release.

Comment 3 Filip Balák 2018-05-11 12:29:32 UTC
Only binary metric is used for capacity metrics:
tendrl-gluster-at-a-glance uses kbytes
tendrl-gluster-bricks uses bytes
tendrl-gluster-hosts uses bytes
tendrl-gluster-volumes uses kbytes
--> VERIFIED

Tested with:
tendrl-ansible-1.6.3-3.el7rhgs.noarch
tendrl-api-1.6.3-3.el7rhgs.noarch
tendrl-api-httpd-1.6.3-3.el7rhgs.noarch
tendrl-commons-1.6.3-4.el7rhgs.noarch
tendrl-grafana-plugins-1.6.3-2.el7rhgs.noarch
tendrl-grafana-selinux-1.5.4-2.el7rhgs.noarch
tendrl-monitoring-integration-1.6.3-2.el7rhgs.noarch
tendrl-node-agent-1.6.3-4.el7rhgs.noarch
tendrl-notifier-1.6.3-2.el7rhgs.noarch
tendrl-selinux-1.5.4-2.el7rhgs.noarch
tendrl-ui-1.6.3-1.el7rhgs.noarch

Comment 5 errata-xmlrpc 2018-09-04 06:59:21 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:2616