Bug 1979996

Summary: Dashboards do not support automatic unit transformation for time
Product: OpenShift Container Platform Reporter: Stavros Kontopoulos <skontopo>
Component: MonitoringAssignee: Andrew Pickering <anpicker>
Status: CLOSED ERRATA QA Contact: Junqi Zhao <juzhao>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.7CC: amuller, anpicker, aos-bugs, erooth, sthaha
Target Milestone: ---Flags: sthaha: needinfo-
Target Release: 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Dashboard screenshots should be updated.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-18 17:38:24 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
scale issue none

Description Stavros Kontopoulos 2021-07-07 14:51:46 UTC
Created attachment 1799224 [details]
scale issue

Description of problem:
Dashboards do not support automatic unit transformation for time.

If value is at the sec scale it should be mapped accordingly. Attached screenshot shows a case where instead of seeing 10 secs user sees 10K ms.

It seems that this is already supported for bytes. This affects Serverless dashboards.


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


How reproducible:


Steps to Reproduce:
1. Install Serverless operator from master (https://github.com/openshift-knative/serverless-operator) with  Knative Eventing, Serving and Kafka 
make images install
make install-strimzi
make install-kafka

2. Install an apiserversource and related kafka channel:
https://gist.github.com/skonto/2c7eeab8b3d1d4ea3d007017971d0ea6

3. Check Knative channel dashboard after a few minutes

Note here that in the same graph there are values at very different magnitude (attached file).

In general this should be reproducible with any dashboard that relies on time units.

Actual results:

Scale does not changed.

Expected results:
Scale should be changed.

Additional info:

Comment 3 Junqi Zhao 2021-07-12 14:13:26 UTC
tested with 4.9.0-0.nightly-2021-07-11-143719, followed steps in Comment 0
docker version 20.10.7
# yq --version
yq version 3.4.1

# oc get clusterserviceversion
NAME                          DISPLAY                        VERSION   REPLACES                      PHASE
serverless-operator.v1.17.0   Red Hat OpenShift Serverless   1.17.0    serverless-operator.v1.16.0   Succeeded

values on the graph use the same magnitude, for UX 
if value > 1000, will convert to sec
otherwise will still use ms

see from the picture

Comment 11 errata-xmlrpc 2021-10-18 17:38:24 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 (Moderate: OpenShift Container Platform 4.9.0 bug fix and security update), 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-2021:3759