Using API calls to obtain OpenShift metrics
Updated -
Prerequisites
To hit the APIs using curl, you will need to be logged into OpenShift as a user with a token (note that system:admin does not have a token). Also, that user will need to have at least cluster-reader permissions. There is currently an issue with OCP 3.4 and cluster-reader...
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.