Skip to content

Mallik-24/bot

Repository files navigation

Title:Comprehensive AWS EKS cluster monitoring with Prometheus, Garafana and EFK stack

Introduction

This project deploys an AI-assisted chatbot on AWS Elastic Kubernetes Service (EKS) and implements a comprehensive monitoring solution using Prometheus, Grafana, and the ELK stack. The chatbot is built using Google Diaglogflow, and the monitoring setup ensures real-time insights into application performance and logs.

Table of Contents

  1. Prerequisites
  2. AWS EKS Management Host Setup
  3. IAM Role Creation and Attachment
  4. Creating the EKS Cluster with eksctl
  5. Deploying Prometheus and Grafana with Helm
  6. Monitoring CPU, Memory, Disk, and Error Codes
  7. Setting up Metrics Alerts
  8. Deploying the ELK Stack for Log Monitoring
  9. Streaming Logs to ELK
  10. Monitoring Real-Time Application Logs
  11. Conclusion

Prerequisites

  • AWS account with necessary permissions
  • Ubuntu VM (t2.micro) for EKS management host
  • kubectl, AWS CLI, eksctl, and Helm installed on the management host
  • IAM Role with appropriate permissions for EKS management host

AWS EKS Management Host Setup

  • Launch an Ubuntu VM (t2.micro) on AWS EC2.
  • Connect to the VM and install kubectl, AWS CLI, and eksctl.
  • Create an IAM Role and attach it to the EKS management host.

Creating the EKS Cluster with eksctl

Use eksctl to create the EKS cluster in your preferred AWS region.

eksctl create cluster --name --region --node-type --nodes-min 2 --nodes-max 2 --zones ,

Deploying Prometheus and Grafana with Helm

Install Prometheus and Grafana using Helm, a package manager for Kubernetes.

helm repo add prometheus-community https://prometheus-community.github.io/helm-charts helm install prometheus prometheus-community/

Monitoring CPU, Memory, Disk, and Error Codes

Configure Prometheus to monitor various metrics like CPU, memory, disk, and error codes.

Setting up Metrics Alerts

Create alerts for critical metrics using Prometheus AlertManager.

Deploying the ELK Stack for Log Monitoring

Install the ELK (Elasticsearch, Logstash, Kibana) stack for log monitoring.

Streaming Logs to ELK

Configure Fluentd to stream logs from Kubernetes to Elasticsearch.

Monitoring Real-Time Application Logs

View real-time application logs using Kibana.

For more detailed information about the project and a comprehensive guide on AWS EKS cluster monitoring with Prometheus, Grafana, and the EFK stack, head over to the blog link below:

https://devo.hashnode.dev/comprehensive-aws-eks-cluster-monitoring-with-prometheus-grafanaand-efk-stack-10weeksofcloudops

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published