Swagger API to send REST requests for Prometheus in OCP 3.11

Solution Verified - Updated -


  • How to write an automation tool to monitor pods resource usage via Prometheus, i.e: collecting CPU&Memory resources with REST API requests thanks to access token for logging to Prometheus API. Invoke REST APIs of OCP 3.11 Prometheus via HttpClient is possible with Prometheus's swagger APIs.
  • How to use a custom SA to access Prometheus API? How can my application access Prometheus API?
  • How to write requests using Prometheus REST APIs via httpclient.


  • Openshift Container Platform 3.11

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