Bug 1772796 - "No datapoints found." is shown in metrics chart on route overview page
Summary: "No datapoints found." is shown in metrics chart on route overview page
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.3.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.3.0
Assignee: Samuel Padgett
QA Contact: Yadan Pei
URL:
Whiteboard:
: 1773124 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-15 08:05 UTC by Yanping Zhang
Modified: 2020-01-23 11:13 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-01-23 11:12:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 3448 0 'None' closed Bug 1772796: don't use tenancy proxy for route charts 2021-02-09 11:46:30 UTC
Red Hat Product Errata RHBA-2020:0062 0 None None None 2020-01-23 11:13:06 UTC

Description Yanping Zhang 2019-11-15 08:05:15 UTC
Description of problem:
Click "Networking -> Routes" and check route overview page on cluster with prometheus intalled, eg on router "thanos-querier" page, all charts show "No datapoints found.".

from browser debug console, find one API
https://console-openshift-console.apps.qe-groupd-1115.qe.devcluster.openshift.com/api/prometheus-tenancy/api/v1/query_range?start=1573797859.659&end=1573801459.659&step=60&namespace=openshift-monitoring&query=sum+without+%28instance%2Cexported_pod%2Cexported_service%2Cpod%2Cserver%29+%28irate%28haproxy_server_bytes_in_total%7Bexported_namespace%3D%22openshift-monitoring%22%2Croute%3D%22thanos-querier%22%7D%5B5m%5D%29%29

decoded url is:
https://console-openshift-console.apps.qe-groupd-1115.qe.devcluster.openshift.com/api/prometheus-tenancy/api/v1/query_range?start=1573797859.659&end=1573801459.659&step=60&namespace=openshift-monitoring&query=sum+without+(instance,exported_pod,exported_service,pod,server)+(irate(haproxy_server_bytes_in_total{exported_namespace="openshift-monitoring",route="thanos-querier"}[5m]))

Note:
sum+without+(instance,exported_pod,exported_service,pod,server)+(irate(haproxy_server_bytes_in_total{exported_namespace="openshift-monitoring",route="thanos-querier"}[5m])) is a invalid search

it may be:
sum without (instance,exported_pod,exported_service,pod,server) (irate(haproxy_server_bytes_in_total{exported_namespace="openshift-monitoring",route="thanos-querier"}[5m]))

after encode, should be
sum%20without%20%28instance%2Cexported_pod%2Cexported_service%2Cpod%2Cserver%29%20%28irate%28haproxy_server_bytes_in_total%7Bexported_namespace%3D%22openshift-monitoring%22%2Croute%3D%22thanos-querier%22%7D%5B5m%5D%29%29


Version-Release number of selected component (if applicable):
payload 4.3.0-0.nightly-2019-11-13-233341

How reproducible:
Always

Steps to Reproduce:
1.Set up cluster with prometheus enable.
2.Check overview page of router "thanos-querier"
3.

Actual results:
2.All charts show "No datapoints found.".

Expected results:
2.Should show correct data for each chart.

Additional info:

Comment 1 Samuel Padgett 2019-11-18 13:22:04 UTC
*** Bug 1773124 has been marked as a duplicate of this bug. ***

Comment 2 Samuel Padgett 2019-11-18 13:23:15 UTC
The URL looks to be encoded correctly. The route metrics queries aren't working through the tenancy proxy.

Comment 4 Samuel Padgett 2019-11-19 13:14:11 UTC
Unfortunately, normal users won't be able to see route metrics since `haproxy_server_bytes_in_total` has `namespace=openshift-ingress` for every returned series. Only users who can see metrics in all namespaces will be able to see route metrics. We've hidden the charts for normal users.

Comment 6 Yanping Zhang 2019-11-22 02:53:06 UTC
Payload: 4.3.0-0.nightly-2019-11-21-122827
Tested on OCP 4.3 env with above payload, checked metrics on a route(eg, console route) overview page, the metrics for "Traffic In","Traffic Out","Connection Rate" are shown correctly.
The bug has been fixed, so move it to Verified.

Comment 8 errata-xmlrpc 2020-01-23 11:12:49 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, 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/RHBA-2020:0062


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