CloudWatch Insights
CloudWatch Container Insights, Lambda Insights, Contributor Insights and Application Insights, and which one answers which monitoring question.
Four kinds of Insights
CloudWatch has several "Insights" features that give ready-made, deeper visibility than raw metrics:
- Container Insights: ECS, EKS, Kubernetes on EC2, Fargate; metrics and logs (needs an agent on Kubernetes).
- Lambda Insights: detailed metrics to troubleshoot serverless applications.
- Contributor Insights: find the top-N contributors through CloudWatch Logs.
- Application Insights: automatic dashboards to troubleshoot an application and related AWS services.
Container Insights
Container Insights collects, aggregates and summarizes metrics and logs from containers.
- Available for containers on:
- Amazon ECS;
- Amazon EKS;
- Kubernetes platforms on EC2;
- Fargate (both for ECS and EKS).
- In EKS and Kubernetes, Container Insights uses a containerized version of the CloudWatch agent to discover containers (installed with the CloudWatch Observability add-on).
Lambda Insights
Lambda Insights is a monitoring and troubleshooting solution for serverless applications running on Lambda.
- Collects, aggregates and summarizes system-level metrics: CPU time, memory, disk and network.
- Collects diagnostic information such as cold starts and Lambda worker shutdowns.
- Provided as a Lambda layer (a CloudWatch Lambda extension).
Contributor Insights
Contributor Insights analyzes log data and creates time series that show contributor data.
- See metrics about the top-N contributors, the total number of unique contributors, and their usage.
- This helps find top talkers and understand who or what is impacting system performance.
- Works for any AWS-generated logs (VPC Flow Logs, DNS…).
- For example, find bad hosts, identify the heaviest network users, or find the URLs that generate the most errors.
- Build rules from scratch, or use sample rules AWS has created. CloudWatch also provides built-in rules for metrics from other AWS services (such as DynamoDB).
For example: VPC Flow Logs → CloudWatch Logs → Contributor Insights → the top 10 IP addresses by traffic.
Application Insights
Application Insights provides automated dashboards that show potential problems with monitored applications, to help isolate ongoing issues.
- The applications run on EC2 with selected technologies (Java, .NET, Microsoft IIS web server, databases such as SQL Server…).
- It also covers related resources: EBS, RDS, ELB, Auto Scaling groups, Lambda, SQS, DynamoDB, S3, ECS, EKS, SNS, API Gateway…
- Powered by SageMaker AI (machine learning).
- Gives better visibility into application health, to reduce the time to troubleshoot and repair.
- Findings and alerts are sent to EventBridge and SSM OpsCenter.
Real-world examples
- A platform team turns on Container Insights for its EKS cluster to see which pods use the most memory.
- A security team uses Contributor Insights on VPC Flow Logs to spot an instance suddenly sending far more traffic than any other.
Exam tips
- "Metrics and logs for ECS, EKS, Fargate containers" → Container Insights.
- "Troubleshoot Lambda performance, cold starts, memory" → Lambda Insights.
- "Top-N", "heaviest users", "top talkers", "which IP generates the most traffic or errors" → Contributor Insights.
- "Automatic dashboards for a .NET or SQL Server application on EC2" → Application Insights.
Common traps
- "Contributor Insights for container metrics." Containers → Container Insights; top-N from logs → Contributor Insights.
Check yourself
Send VPC Flow Logs to CloudWatch Logs and use a Contributor Insights rule to rank the top-N source IP addresses.
AWS documentation
CloudWatch alarms
CloudWatch alarm states and periods, alarm targets, composite alarms, EC2 instance recovery, alarms on log metric filters, testing alarms, and CloudWatch Network Synthetic Monitor.
AWS CloudTrail
AWS CloudTrail for auditing API calls, trails and event history, management, data, network activity and Insights events, retention beyond 90 days, and reacting to API calls with EventBridge.