Helm install node-exporter

Jmnote (토론 | 기여)님의 2024년 8월 12일 (월) 11:44 판

1 개요

helm install node-exporter
$ helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
"prometheus-community" has been added to your repositories
$ helm repo update
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "prometheus-community" chart repository
Update Complete. ⎈Happy Helming!⎈
$ helm install ne prometheus-community/prometheus-node-exporter
NAME: ne
LAST DEPLOYED: Mon Aug 12 02:37:40 2024
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
1. Get the application URL by running these commands:
  export POD_NAME=$(kubectl get pods --namespace default -l "app.kubernetes.io/name=prometheus-node-exporter,app.kubernetes.io/instance=ne" -o jsonpath="{.items[0].metadata.name}")
  echo "Visit http://127.0.0.1:9100 to use your application"
  kubectl port-forward --namespace default $POD_NAME 9100
$ kubectl get pod -owide
NAME                                READY   STATUS    RESTARTS   AGE     IP           NODE           NOMINATED NODE   READINESS GATES
ne-prometheus-node-exporter-m4p8s   1/1     Running   0          6m33s   172.30.1.2   controlplane   <none>           <none>
ne-prometheus-node-exporter-vtvrb   1/1     Running   0          6m33s   172.30.2.2   node01         <none>           <none>
$ curl -s http://172.30.1.2:9100/metrics | grep ^node_
node_arp_entries{device="cali52ff8003965"} 1
node_arp_entries{device="calid33c0dac998"} 1
node_arp_entries{device="enp1s0"} 1
node_arp_entries{device="flannel.1"} 1
node_boot_time_seconds 1.723429956e+09
...

2 같이 보기

3 참고

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