helm install node-exporter

1 개요[ | ]

helm install node-exporter
Console
Copy
$ helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
"prometheus-community" has been added to your repositories
Console
Copy
$ 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!⎈
Console
Copy
$ 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
Console
Copy
$ 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>
Console
Copy
$ 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 참고[ | ]