Monitoring & Cost Optimization

Overview

This section guides you through monitoring the Lexi application and optimizing AWS costs:

  1. CloudWatch - Monitor logs, metrics, alarms
  2. Cost Optimization - Optimize costs for each service

Monitoring Content

Monitoring is divided into 2 main parts:

  1. CloudWatch - Application monitoring

    • View logs from Lambda, API Gateway
    • Monitor metrics (invocations, errors, duration)
    • Create alarms
    • Create dashboards
  2. Cost Optimization - Cost optimization

    • DynamoDB optimization
    • Lambda optimization
    • S3 optimization
    • Bedrock optimization
    • AWS Budgets
    • Cost Explorer

Checklist

After completing the Monitoring section, you should:

  • Know how to view logs from Lambda and API Gateway
  • Understand how to monitor metrics (invocations, errors, duration)
  • Know how to create CloudWatch alarms
  • Know how to create CloudWatch dashboards
  • Understand how to optimize DynamoDB costs
  • Understand how to optimize Lambda costs
  • Understand how to optimize S3 costs
  • Understand how to optimize Bedrock costs
  • Know how to use AWS Budgets
  • Know how to use Cost Explorer

📸 TODO: Add CloudWatch dashboard screenshot

📸 TODO: Add Cost Explorer screenshot

Next Steps

You’ve completed the Monitoring section! Continue to Clean-up & Resource Management to learn how to delete resources when no longer needed.