Links#
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/WhatIsCloudWatch.html
https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/WhatIsCloudWatchLogs.html
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Install-CloudWatch-Agent.html
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_awslogs.html
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html
1. Important Points#
CloudWatch 覆盖面很大:
Metrics
Logs
Alarms
Dashboards
Container Insights
CloudWatch Agent
Logs subscription
Metric Streams
文档拆分原则:
_index.md:
mental model / service map / best practices
subtopic page:
practical workflow
IAM sample
config sample
minimal code demo
verify / troubleshooting
2. Common Pages#
| Page |
Goal |
Alarms.md |
CloudWatch Alarm naming, SNS/Lambda notification router, metric math examples |
AlarmStatistics.md |
CloudWatch Alarm statistic / extended statistic selection and CLI examples |
ECSLogsToVictoriaLogs.md |
ECS logs to self-hosted VictoriaLogs |
3. Production Checklist#
logs:
retention defined
sensitive fields filtered
delivery failure monitored
cost monitored
metrics:
service SLO metrics identified
alarms reviewed
dashboard exists
operations:
log ingestion runbook exists
IAM least privilege
VPC endpoint / NAT path reviewed