below are the steps to install prometheus and grafana on a kubernetes cluster using helm
- helm
- kubectl
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update
kubectl create ns monitoring
helm install prometheus --namespace monitoring prometheus-community/kube-prometheus-stack
kubectl edit svc prometheus-grafana -n monitoring
kubectl get secret prometheus-grafana -n monitoring -o jsonpath="{.data.admin-user}" | base64 --decode ; echo
kubectl get secret prometheus-grafana -n monitoring -o jsonpath="{.data.admin-password}" | base64 --decode ; echo