Bug 1942557 - Query is reporting "no datapoint" when label cluster="" is set but work when the label is removed or when running directly in Prometheus
Summary: Query is reporting "no datapoint" when label cluster="" is set but work when ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Dev Console
Version: 4.6
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
: 4.8.0
Assignee: Vikram Raj
QA Contact: Gajanan More
URL:
Whiteboard:
Depends On:
Blocks: 1948369
TreeView+ depends on / blocked
 
Reported: 2021-03-24 14:36 UTC by Simon Reber
Modified: 2021-07-27 22:55 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-27 22:55:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 8519 0 None open Bug 1942557: Remove cluster label from predefined monitoring queries 2021-03-30 17:30:33 UTC
Red Hat Product Errata RHSA-2021:2438 0 None None None 2021-07-27 22:55:34 UTC

Description Simon Reber 2021-03-24 14:36:31 UTC
Description of problem:

When running any of the pre-defined Metrics queries in OpenShift Developer Console, https://<cluster-url>/dev-monitoring/ns/project-X/metrics the user is reporting "no datapoing found".

For example when running the "CPU Usage" query which is running `sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{cluster="", namespace='<%= namespace %>'}) by (pod)` it will report back "no datapoint found".

When running the same in Prometheus we see all the data expected.

Once re-running the query in the Developer Console but removing `cluster=""` it also works there and shows the data as expected. Meaning the query like `sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_rate{namespace='<%= namespace %>'}) by (pod)` works.

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

 - OpenShift Container Platform 4.5.23 and 4.6.21

How reproducible:

 - N/A


Steps to Reproduce:
1. N/A

Actual results:

The user is seeing "no datapoints found" message but in fact the datapoints are there when removing `cluster=""` from the query.

Expected results:

The user should be able to see all data points without the need to modify the pre-defined queries.

Additional info:

The question is a bit, why the label `cluster=""` is set on most of the pre-defined queries as currently it does not appear to make sense to have it there. And why it could cause the Console to report back "no datapoints" even though there are datapoints available.

Comment 5 Karthik Jeeyar 2021-04-12 06:12:10 UTC
Verified on 4.8.0-0.nightly-2021-04-09-222447

Comment 8 errata-xmlrpc 2021-07-27 22:55:12 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.8.2 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:2438


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