Bug 2056682

Summary: Dashboard "Knative Serving - Revision CPU, Memory and Network Usage" renders wrong data under dev view
Product: OpenShift Container Platform Reporter: Stavros Kontopoulos <skontopo>
Component: Dev ConsoleAssignee: Vikram Raj <viraj>
Status: CLOSED DEFERRED QA Contact: spathak <spathak>
Severity: high Docs Contact:
Priority: medium    
Version: 4.9CC: akundu, nmukherj, talessio, viraj
Target Milestone: ---   
Target Release: 4.12.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Known Issue
Doc Text:
There is currently a known issue. The *Knative Serving - Revision CPU, Memory, and Network usage* and *Knative Serving - Revision Queue proxy Metrics* dashboards are visible to all the namespaces, including those that do not have Knative services. They should show only with namespaces that have Knative services. (link:https://bugzilla.redhat.com/show_bug.cgi?id=2056682[BZ#2056682])
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-03-09 01:13:12 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:

Description Stavros Kontopoulos 2022-02-21 20:31:18 UTC
Description of problem:

"Knative Serving - Revision CPU, Memory and Network Usage" dashboard under
dev view is rendered wrongly.

Reason is that under dev view prom query is different and ignores several template variables.

sum(rate(container_cpu_usage_seconds_total{namespace="default", pod=~"autoscale-go-00001.*", container != "POD", container != ""}[1m])) by (container)   <- dev view

vs

sum(rate(revision_app_request_count{namespace="default", revision_name=~"autoscale-go-00001.*", configuration_name=~"autoscale-go.*", container_name="queue-proxy"}[1m])) <- admin view

For screenshots check https://coreos.slack.com/archives/CD87JDUB0/p1645458950037779

If user selects any project eg. the knative-eventing project the dashboards shows irrelevant pods that are not Knative Service related.

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

Tested on OCP 4.9.21.

How reproducible:


Steps to Reproduce:
1. Install Serverless Operator, Serving and Eventing components
2. Run a sample Kantive service (https://gist.github.com/skonto/c1ff0becf3f592b886f279c7fd265040)
3. Compare the dashboard under admin, dev views.

Actual results:

Wrong data are shown eg. pick project knative-eventing.

Expected results:

Same data should be shown as under the admin view and not all projects should be listed as in admin view template variables control that.

Additional info:

Comment 1 Jaivardhan Kumar 2022-02-22 13:05:09 UTC
*** Bug 2056687 has been marked as a duplicate of this bug. ***

Comment 5 Shiftzilla 2023-03-09 01:13:12 UTC
OpenShift has moved to Jira for its defect tracking! This bug can now be found in the OCPBUGS project in Jira.

https://issues.redhat.com/browse/OCPBUGS-9125