cloudwatch
AWS CloudWatch monitoring for logs, metrics, alarms, and dashboards. Use when setting up monitoring, creating alarms, querying logs with Insights, configuring metric filters, building dashboards, or troubleshooting application issues.
npx skills add itsmostafa/aws-agent-skills --skill cloudwatch --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# AWS CloudWatch Amazon CloudWatch provides monitoring and observability for AWS resources and applications. It collects metrics, logs, and events, enabling you to monitor, troubleshoot, and optimize your AWS environment. ## Table of Contents - [Core Concepts](#core-concepts) - [Common Patterns](#common-patterns) - [CLI Reference](#cli-reference) - [Best Practices](#best-practices) - [Troubleshooting](#troubleshooting) - [References](#references) ## Core Concepts ### Metrics Time-ordered data points published to CloudWatch. Key components: - **Namespace**: Container for metrics (e.g., `AWS/Lambda`) - **Metric name**: Name of the measurement (e.g., `Invocations`) - **Dimensions**: Name-value pairs for filtering (e.g., `FunctionName=MyFunc`) - **Statistics**: Aggregations (Sum, Average, Min, Max, SampleCount, pN) ### Logs Log data from AWS services and applications: - **Log groups**: Collections of log streams - **Log streams**: Sequences of log events from same source - **Log events**: Individual log entries with timestamp and message ### Alarms Automated actions based on metric thresholds: - **States**: OK, ALARM, INSUFFICIENT_DATA - **Actions**: SNS notifications, Auto Scaling, EC
- Table of Contents
- Core Concepts
- Metrics
- Logs
- Alarms
- Common Patterns
- Create a Metric Alarm
- Lambda Error Rate Alarm
- Query Logs with Insights
- Create Metric Filter
- Publish Custom Metrics
- Create Dashboard
- CLI Reference
- Metrics Commands
CPU utilization alarm for EC2 aws cloudwatch put-metric-alarm \ Find errors in Lambda logs aws logs start-query \ fields @timestamp, @message Get query results aws logs get-query-results --query-id <query-id> Create metric filter for error count aws logs put-metric-filter \ cat > dashboard.json << 'EOF'
What does the cloudwatch skill do?
AWS CloudWatch monitoring for logs, metrics, alarms, and dashboards. Use when setting up monitoring, creating alarms, querying logs with Insights, configuring metric filters, building dashboards, or troubleshooting application issues.
How do I install it?
Run `npx skills add itsmostafa/aws-agent-skills --skill cloudwatch --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From itsmostafa/aws-agent-skills, a repository with 1,139 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
