Skip to content

Addy07-byte/cloudops-ai-monitoring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 

Repository files navigation

CloudOps AI Monitoring πŸ”πŸš€

This project is a backend-focused cloud monitoring system that detects anomalies in AWS EC2 metrics using Amazon CloudWatch and AWS Lambda. It is designed to emulate core functionalities found in enterprise monitoring tools like Datadog or AWS CloudWatch Alarms β€” with AI-based anomaly detection logic built into a serverless function.


βœ… Completed Features

  • 🎯 Real-time metric analysis using AWS CloudWatch (CPUUtilization)
  • 🧠 Anomaly detection Lambda function using Python and threshold logic
  • πŸ› οΈ Lambda deployed via .zip package β€” fully cloud-native
  • πŸ“Š CloudWatch metrics integration (with plans for automated remediation)

πŸ”œ Planned Features

  • Auto-remediation Lambda to restart EC2 instances on anomalies
  • Trigger flow between detection and remediation via boto3 or SNS
  • Alerting via email/SNS/Slack
  • Optional frontend dashboard (Streamlit or S3-hosted HTML)
  • CI/CD via GitHub Actions for automated deployment

🧱 Architecture (Current Phase)

[EC2 Instance] ↓ [CloudWatch Metrics] ↓ [Anomaly Detection Lambda] ↓ Logs to Console (for now)

πŸ“ Project Structure

cloudops-ai-monitoring/ β”œβ”€β”€ lambda/ β”‚ └── anomaly_detector/ β”‚ β”œβ”€β”€ main.py β”‚ └── requirements.txt β”œβ”€β”€ README.md

πŸ› οΈ Technologies Used

Technology Role
AWS EC2 Simulated infrastructure to monitor
AWS CloudWatch Collects system metrics like CPU usage
AWS Lambda Runs anomaly detection logic serverlessly
Python (boto3) AWS SDK to fetch metrics and handle logic
GitHub Version control and project hosting

πŸ’‘ How It Works

  1. EC2 instance sends CPU metrics to CloudWatch
  2. Lambda function is triggered manually or on schedule
  3. It fetches the last 5–10 minutes of CPU usage
  4. Uses logic (e.g., CPU > 80%) to flag anomalies
  5. Logs results β€” ready to trigger remediation in next phase

🀝 Why This Project Matters

This is a real-world simulation of cloud infrastructure monitoring + smart automation. It demonstrates:

  • πŸ” Observability
  • 🧠 AI-driven backend logic
  • ⚑ Serverless operations
  • πŸ§‘β€πŸ’» DevOps + Cloud Engineering principles

πŸ“£ About the Author

This project is part of my cloud portfolio as an aspiring cloud/DevOps engineer. I built it using AWS Free Tier tools and Python, and I’m actively working on adding automated remediation and alerting features.

πŸ“¬ Connect with me on LinkedIn


πŸ—ΊοΈ License

This project is open-source and available under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages