Prometheus & Grafana Setup on EKS

This guide covers installing Prometheus and Grafana on an Amazon EKS cluster using Helm.


1. Create Monitoring Namespace

kubectl create namespace monitoring

2. Install Prometheus

  1. Add Prometheus Helm repository:
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
  1. Update Helm repositories:
helm repo update
  1. Install Prometheus:
helm install prometheus prometheus-community/prometheus --namespace monitoring

3. Install Grafana

  1. Add Grafana Helm repository:
helm repo add grafana https://grafana.github.io/helm-charts
  1. Update Helm repositories:
helm repo update
  1. Install Grafana (with admin password admin and LoadBalancer service type):
helm install grafana grafana/grafana \
  --namespace monitoring \
  --set adminPassword='admin' \
  --set service.type=LoadBalancer

4. Get Grafana Service Details

kubectl get svc -n monitoring grafana

This will return the EXTERNAL-IP (LoadBalancer URL) for accessing Grafana.


5. Get Grafana Admin Password

kubectl get secret --namespace monitoring grafana -o jsonpath="{.data.admin-password}" | base64 --decode ; echo

6. Configure Prometheus as a Data Source in Grafana

  1. Log in to Grafana using the LoadBalancer URL:
http://<GRAFANA_EXTERNAL_IP>

Username: admin Password: (from Step 5)

  1. Go to: Connections → Data sources → Add data source → Prometheus

  2. Set the URL to:

http://prometheus-server.monitoring.svc.cluster.local
  1. Click Save & Test — you should see a green ✅ Data source is working.


💬 Need a Quick Summary?

Hey! Don't have time to read everything? I get it. 😊
Click below and I'll give you the main points and what matters most on this page.
Takes about 5 seconds • Uses Perplexity AI