β Install Prometheus Operator
β Configure Grafana Dashboard
- Kubernetes/kubectl
- helm3
Note: This setup is using kubespray and the sock shop demo microservice. For cluster setup and microservice deployment instructions click here
-
Create a namespace for prometheus
kubectl create namespace monitoring
-
Get repo info
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts helm repo add stable https://charts.helm.sh/stable helm repo update
-
Install prometheus operator with helm charts
helm install prometheus prometheus-community/kube-prometheus-stack --namespace monitoring
-
Verify pods are running
kubectl get pods -n monitoring
-
Access the dashboard
kubectl port-forward $(kubectl get pods -n monitoring -o name | grep grafana) 8080:3000 -n monitoring #defualt login admin | prom-operator
-
Once logged in navigate to the home button and check out the different metrics available
#ex/ Kubernetes/Compute Resources/Namespace(Pods)