how to get metrics for a node or pod using godaddy/kubernetes-client api?

7/19/2019

I am creating a trying to get metrics to a node or a pod using godaddy/kubernetes-client.. I can't find any documentation for this api.

I have searched the docs https://github.com/godaddy/kubernetes-client/tree/master/docs/1.13 and have not find any solution.

deployer.apis["metrics.k8s.io"].v1v1beta1.nodes()
deployer.apis["metrics.k8s.io"].v1v1beta1.pods()
apis/metrics.k8s.io/v1beta1/nodes
apis/metrics.k8s.io/v1beta1/nodes/<node-name>
apis/metrics.k8s.io/v1beta1/pods
apis/metrics.k8s.io/v1beta1/namespace/<namespace-name>/pods/<pod-name>
-- Ragheb Abo Dargham
javascript
kubernetes
node.js

0 Answers