aws-cloudwatch
Monitor resources with metrics, alarms, and dashboards.
TLDR
Put custom metric data to CloudWatch
SYNOPSIS
aws cloudwatch command [options]
DESCRIPTION
aws cloudwatch is the AWS CLI interface for Amazon CloudWatch, a monitoring and observability service for AWS resources and applications. CloudWatch collects metrics, logs, and events, providing visibility into resource utilization, application performance, and operational health.
CloudWatch enables setting alarms that trigger notifications or automated actions based on metric thresholds. It supports both built-in AWS service metrics and custom application metrics.
COMMANDS
put-metric-data
Publish custom metric data pointsget-metric-data
Retrieve metric values using queriesget-metric-statistics
Get statistics for a specific metriclist-metrics
List available metrics by namespaceput-metric-alarm
Create or update a metric alarmdescribe-alarms
List configured alarms and their statesset-alarm-state
Manually set alarm state for testingput-dashboard
Create or update a CloudWatch dashboardput-anomaly-detector
Create an anomaly detection model for a metric
CAVEATS
Metric data older than 15 months is automatically deleted. High-resolution metrics (1-second granularity) incur additional costs. Custom metrics are charged per metric per month. Alarm evaluations may be delayed during service disruptions.
HISTORY
Amazon CloudWatch launched in May 2009 alongside EC2 monitoring. Custom metrics were added in 2011, dashboards in 2015, and anomaly detection in 2019. The service has evolved to become the central monitoring hub for all AWS services and is now integrated with CloudWatch Logs and EventBridge.
SEE ALSO
aws(1), aws-logs(1), aws-events(1), aws-ec2(1)
