Prometheus and Grafana For EKS Cluster
Prometheus and Grafana For EKS Cluster
unzip awscliv2.zip
sudo ./aws/install
Okay now after installing the AWS CLI, let's configure the AWS CLI so that it can
authenticate and communicate with the AWS environment.
aws configure
Moving forward now we need to set up the kubectl also onto the EC2 instance.
This way we install all AWS CLI, kubectl, eksctl and Helm.
Follow below steps to install terraform on AmazonLinux.
terraform init
terraform plan
terraform apply
aws eks --region ap-south-1 update-kubeconfig --name eks_cluster_demo
Install Prometheus
Install Grafana
Add the Grafana helm chart repository. Later, Update the helm chart repository.
--set adminPassword='Venkat@123' \
--set service.type=LoadBalancer
annotations:
meta.helm.sh/release-name: prometheus
meta.helm.sh/release-namespace: prometheus
labels:
app: kube-prometheus-stack-prometheus
app.kubernetes.io/instance: prometheus
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/part-of: kube-prometheus-stack
app.kubernetes.io/version: 55.5.1
chart: kube-prometheus-stack-55.5.1
heritage: Helm
release: prometheus
self-monitor: "true"
name: prometheus-kube-prometheus-prometheus
namespace: prometheus
resourceVersion: "6646"
uid: 0e68febb-a677-49b9-86b6-85602ea04fcc
spec:
ports:
- name: http-web
port: 9090
protocol: TCP
targetPort: 9090
- appProtocol: http
name: reloader-web
port: 8080
protocol: TCP
targetPort: reloader-web
selector:
app.kubernetes.io/name: prometheus
operator.prometheus.io/name: prometheus-kube-prometheus-prometheus
sessionAffinity: None
type: LoadBalancer
status:
loadBalancer: {}
[ec2-user@ip-172-31-9-225 blue-green]$