kubectl proxy 통해 cadvisor 메트릭 조회

1 개요[ | ]

kubectl proxy 통해 cadvisor 메트릭 조회
kubectl proxy &
NODE=노드명
curl http://127.0.0.1:8001/api/v1/nodes/$NODE/proxy/metrics/cadvisor
pkill kubectl

2 실행예시[ | ]

$ kubectl get no
NAME           STATUS   ROLES           AGE   VERSION
controlplane   Ready    control-plane   16d   v1.30.0
node01         Ready    <none>          16d   v1.30.0
$ kubectl proxy &
[1] 5138
Starting to serve on 127.0.0.1:8001
$ NODE=node01
$ curl http://127.0.0.1:8001/api/v1/nodes/$NODE/proxy/metrics/cadvisor 
...
# HELP machine_swap_bytes Amount of swap memory available on the machine.
# TYPE machine_swap_bytes gauge
machine_swap_bytes{boot_id="9780a0ea-9032-48c7-beb3-308732e2e5aa",machine_id="388a2d0f867a4404bc12a0093bd9ed8d",system_uuid="d727cefa-564a-43a0-8f5b-5f07eb547378"} 0
$ pkill kubectl
[1]+  Terminated              kubectl proxy

3 같이 보기[ | ]

4 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}