aws_cloudwatch_get_metric_statistics
Retrieve statistical data for AWS CloudWatch metrics, including Average, Sum, Min, and Max values over specified time periods to monitor and analyze system performance.
Instructions
Get statistics (Average, Sum, Min, Max) for a single CloudWatch metric over a time period.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile | No | AWS profile name from ~/.aws/config (e.g., 'default', 'production') | |
| region | No | AWS region override (e.g., 'us-east-1', 'sa-east-1') | |
| namespace | Yes | Metric namespace (e.g., 'AWS/EC2') | |
| metric_name | Yes | Metric name (e.g., 'CPUUtilization') | |
| dimensions | No | Dimensions (e.g., [{"Name": "InstanceId", "Value": "i-xxx"}]) | |
| start_time | Yes | Start time (ISO 8601) | |
| end_time | Yes | End time (ISO 8601) | |
| period | Yes | Granularity in seconds (e.g., 300 = 5 minutes) | |
| statistics | Yes | Statistics to retrieve (e.g., ['Average', 'Maximum']) |