Bug 1877198 - Query Browser: Metrics dropdown error message is not helpful when access is restricted
Summary: Query Browser: Metrics dropdown error message is not helpful when access is r...
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Monitoring
Version: 4.6
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 4.6.0
Assignee: Andrew Pickering
QA Contact: hongyan li
Depends On:
TreeView+ depends on / blocked
Reported: 2020-09-09 04:33 UTC by Andrew Pickering
Modified: 2020-09-10 06:59 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed:
Target Upstream Version:

Attachments (Terms of Use)
error info before the fix (56.54 KB, image/png)
2020-09-10 02:09 UTC, Junqi Zhao
no flags Details

System ID Priority Status Summary Last Updated
Github openshift console pull 6561 None open Bug 1877198: Query Browser: Improve error message when Prometheus API returns 403 2020-09-09 04:34:19 UTC

Description Andrew Pickering 2020-09-09 04:33:42 UTC
The dropdown of available metrics on the query browser page shows a generic message when it fails to fetch the metrics from the Prometheus API.

A common reason for the API call failing is that the user does not have access to the API. In this case, it would be more helpful to show a message saying that.

Comment 6 Junqi Zhao 2020-09-10 02:09:23 UTC
Created attachment 1714359 [details]
error info before the fix

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