A serverless service health monitoring system built with AWS Lambda.
This system uses:
- AWS Lambda for serverless computation
- DynamoDB for storing health check results
- EventBridge for scheduled execution
- Terraform for infrastructure as code
service-monitor/
├── src/
│ └── lambda/
│ └── health_checker.py
├── infrastructure/
│ ├── main.tf
│ ├── variables.tf
│ └── outputs.tf
├── tests/
│ └── test_health_checker.py
└── README.md
- Set up virtual environment:
python -m venv site_reliability
source venv/bin/activate
- Install dependencies:
pip install -r requirements.txt
- Configure AWS credentials
- Initialize Terraform:
cd infrastructure
terraform init
- Deploy:
terraform apply
- Real-time health monitoring of web services
- Latency tracking
- Historical data storage
- Automated deployment