I have installed Heapster in my Kubernetes cluster.I can give resource usage from command line, for example kubectl top pods
, and Kubernetes web panel.
I'm trying to get resource usage via web API from Heapster. Actually I'd like to get resource usage (e.g: ram and cpu) a node, pod or namespace from Web API.
There is a web api http://localhost:8001/swagger-2.0.0.json
in Kubernetes but there isn't any API for resource usage or Heapster data.
Is there any way to get resource usage via web API in Kubernetes ?
thanks