"oc adm top" commands shows "error: metrics not available yet" in OCP 4

Solution Verified - Updated -

Issue

  • After installing the Prometheus Monitoring Stack, the oc adm top nodes command shows error: metrics not available yet.

  • Able to see the metrics in Prometheus and Grafana Console/UI, but CLI throws error: metrics not available yet error.

  • The PodMetrics resource is not available.

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content