- Kubernetes cluster
- helm
-
Create a dedicated namespace for prometheus
kubectl create namespace monitoring
-
Add Prometheus helm chart repository
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
-
Update the helm chart repository
helm repo update helm repo list
-
Install the prometheus
helm install prometheus prometheus-community/kube-prometheus-stack --namespace monitoring
-
Above helm create all services as ClusterIP. To access Prometheus out side of the cluster, we should change the service type load balancer
kubectl edit svc prometheus-kube-prometheus-prometheus -n monitoring
-
Loginto Prometheus dashboard to monitor application https://ELB:9090
-
Check for node_load15 executor to check cluster monitoring
-
We check similar graphs in the Grafana dashboard itself. for that, we should change the service type of Grafana to LoadBalancer
kubectl edit svc prometheus-grafana
-
To login to Grafana account, use the below username and password
username: admin password: prom-operator
-
Here we should check for "Node Exporter/USE method/Node" and "Node Exporter/USE method/Cluster" USE - Utilization, Saturation, Errors
-
Even we can check the behavior of each pod, node, and cluster