Install Prometheus & Grafana
kubectl create namespace monitoring
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo add grafana https://grafana.github.io/helm-charts
helm repo update
helm install prometheus prometheus-community/prometheus --namespace monitoring
helm install grafana grafana/grafana --namespace monitoring
Config Grafana
- Get password:
kubectl get secret --namespace monitoring grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo
- Port forward:
kubectl --namespace monitoring port-forward deploy/grafana 3000
-
open http://localhost:3000 in browser, login user: admin
-
Add data source: http://prometheus-server.monitoring.svc.cluster.local
-
Create Dashboard then get from: https://grafana.com/grafana/dashboards/
EOF