Bug 2180790

Summary: [RFE] Add "inspect" button to open the metrics query in virtualization metrics pages
Product: Container Native Virtualization (CNV) Reporter: Guohua Ouyang <gouyang>
Component: User ExperienceAssignee: Tal Nisan <tnisan>
Status: VERIFIED --- QA Contact: Guohua Ouyang <gouyang>
Severity: high Docs Contact:
Priority: high    
Version: 4.13.0CC: gouyang, rsdeor
Target Milestone: ---   
Target Release: 4.14.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: 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
inspect example none

Description Guohua Ouyang 2023-03-22 10:04:38 UTC
Created attachment 1952705 [details]
inspect example

Description of problem:
Currently, there is no button "inspect" in virtualization metrics pages.
So when there is no data, user don't know what's wrong and what's the query, add the inspect button there allow user to click it and get the query details.

Ref to the attachment for example.

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Guohua Ouyang 2023-04-17 10:16:52 UTC
Move this to high as it's a very import improvement to let the user understand what's the query is and why no graph shows on UI.

Comment 2 Ronen 2023-07-25 15:39:16 UTC
Guohua, I guess you are referring to the VM Metric tab and only when there is no data (when there is data, you can click the graph to inspect it), is this correct?

Comment 3 Guohua Ouyang 2023-07-26 00:33:35 UTC
(In reply to Ronen from comment #2)
> Guohua, I guess you are referring to the VM Metric tab and only when there
> is no data (when there is data, you can click the graph to inspect it), is
> this correct?

If we add this inspect button, it should be added there no matter the graph is showing or not.

> when there is data, you can click the graph to inspect it
This is kind of unexpected result as it opens another page without a hint.
While clicking the graph in Observe -> Dashboards, it does not open the metrics until clicking the inspect button. 
Maybe we should remove the link in the graph after adding the inspect button.

Comment 4 Ronen 2023-07-26 06:28:11 UTC
This is the behavior across all OCP: If you view the metrics tab of any pod, clicking a graph will take you to the Metrics page.
The issue we have is that when the graph has no data, we do not enable the click, while for pods it will still take you to the Metrics page.
WDYT?

Comment 5 Guohua Ouyang 2023-07-26 07:27:52 UTC
Ah, I just checked the behavior on Pod, and it takes you to metrics details when there is no graph.
I agree with you to enable the click even there is no data would solve the problem we have.

Comment 6 Guohua Ouyang 2023-08-17 02:04:13 UTC
verified on kubevirt-console-plugin-rhel9-container-v4.14.0-2606