Skip to content

lewinkedrs/cop405-build-an-agent

Repository files navigation

AWS Observability Agent


This Repository is meant to serve as a demonstration. This code should not be used in production as is.

A comprehensive AWS infrastructure monitoring and analysis tool that uses CloudWatch MCP tools to discover resources, analyze performance, and generate actionable insights.

Quick Demo

Run both agents with a single command:

python demo.py

Or run them individually:

1. Basic SRE Agent

python agent.py
  • Quick text-based analysis
  • Writes findings to operational.md

2. Advanced Observability Agent

python natural_language_observability_agent.py --region us-east-2
  • Comprehensive HTML dashboard with interactive Plotly charts
  • Real CloudWatch metrics visualization
  • Working AWS Console deep links
  • Industry postmortem analysis

Setup

pip install -r requirements.txt

Key Features

  • Real CloudWatch Data: Actual metrics from EC2, RDS, Lambda, EKS, etc.
  • Interactive Charts: Plotly visualizations of CPU utilization, service distribution
  • Working Deep Links: Direct links to your AWS Console resources
  • Industry Context: Postmortem analysis for similar incidents
  • Beautiful Reports: Interactive HTML dashboards

Output

  • operational.md - Text analysis from basic agent
  • reports/*.html - Interactive dashboard from advanced agent

About

Repository for reinvent 2025 session COP405

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published