Bug 2056682 - Dashboard "Knative Serving - Revision CPU, Memory and Network Usage" renders wrong data under dev view
Summary: Dashboard "Knative Serving - Revision CPU, Memory and Network Usage" renders ...
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Dev Console
Version: 4.9
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: ---
: 4.12.z
Assignee: Vikram Raj
QA Contact: spathak@redhat.com
URL:
Whiteboard:
: 2056687 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-21 20:31 UTC by Stavros Kontopoulos
Modified: 2023-03-09 01:13 UTC (History)
4 users (show)

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])
Clone Of:
Environment:
Last Closed: 2023-03-09 01:13:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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


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