Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1693047 - data format in console should be in align with that in the alert annotations
Summary: data format in console should be in align with that in the alert annotations
Keywords:
Status: ON_QA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.1
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: 4.1.0
Assignee: Andrew Pickering
QA Contact: Junqi Zhao
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-27 02:55 UTC by Junqi Zhao
Modified: 2019-04-16 06:38 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:


Attachments (Terms of Use)
prometheus graph in alert details page (deleted)
2019-03-27 02:55 UTC, Junqi Zhao
no flags Details

Description Junqi Zhao 2019-03-27 02:55:52 UTC
Created attachment 1548360 [details]
prometheus graph in alert details page

Description of problem:
consume the alertmanager storage to tigger KubePersistentVolumeFullInFourDays alert
see the attached picture, one available percentage is 5.361159810113915, the other is 11.595699544497547
But the console treats them as 5.4 and 12

I think the format should be "%0.2f", in align with KubePersistentVolumeFullInFourDays annotations

Version-Release number of selected component (if applicable):
4.0.0-0.nightly-2019-03-25-180911

How reproducible:
Always

Steps to Reproduce:
1. consume the alertmanager storage to tigger KubePersistentVolumeFullInFourDays alert and go to the alert rule details page and check the graph
2.
3.

Actual results:
console treats them as 5.4 and 12

Expected results:
data format in console should be in align with that in the alert annotations

Additional info:
KubePersistentVolumeFullInFourDays expression:
100 * (kubelet_volume_stats_available_bytes{job="kubelet",namespace=~"(openshift-.*|kube-.*|default|logging)"} / kubelet_volume_stats_capacity_bytes{job="kubelet",namespace=~"(openshift-.*|kube-.*|default|logging)"}) < 15 and predict_linear(kubelet_volume_stats_available_bytes{job="kubelet",namespace=~"(openshift-.*|kube-.*|default|logging)"}[6h], 4 * 24 * 3600) < 0

annotations:
Based on recent sampling, the PersistentVolume claimed by {{ $labels.persistentvolumeclaim }} in Namespace {{ $labels.namespace }} is expected to fill up within four days. Currently {{ printf "%0.2f" $value }}% is available.

Comment 1 Andrew Pickering 2019-04-16 05:48:08 UTC
It seems this was fixed by https://github.com/openshift/console/pull/1397


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