It seems the console still using the wrong query on dashboard for memory/cpu/disk
(sum(node_filesystem_size_bytes) - sum(node_filesystem_free_bytes))[60m:5m]
and get error on prometheus UI:
Error executing query: invalid expression type "range vector" for range query, must be Scalar or instant Vector
It is better to remove '[60m:5m]' to avoid confusing others. Or change url to "https://prometheus-k8s-openshift-monitoring.apps.***/graph?g0.range_input=1h&g0.expr=cluster%3Acpu_usage_cores%3Asum%5B60m%3A5m%5D&g0.tab=1" with 'tab=1'
@shahan the issue is that in 4.2 we are still using range selector for prometheus 'query' endpoint which results in an error when opening prometheus UI as you described. The queries are fixed however. If we need to switch to 'query_range' endpoint for 4.2 too than we should open a new bug and not reopen this one IMO.
agree for close this, then open another bug for tracking.
Verified this bug
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.