aws_cloudwatch_get_metric_data
Retrieve time-series metric data from AWS CloudWatch for monitoring and analysis. Supports multiple metrics and math expressions in a single API call to track performance and resource utilization.
Instructions
Retrieve time-series metric data for one or more CloudWatch metrics. Supports multiple metrics and math expressions in a single call.
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') | |
| metric_data_queries | Yes | Metric queries. Example: [{"Id": "m1", "MetricStat": {"Metric": {"Namespace": "AWS/EC2", "MetricName": "CPUUtilization", "Dimensions": [{"Name": "InstanceId", "Value": "i-xxx"}]}, "Period": 300, "Stat": "Average"}}] | |
| start_time | Yes | Start time (ISO 8601, e.g., '2024-01-01T00:00:00Z') | |
| end_time | Yes | End time (ISO 8601) | |
| max_datapoints | No | Maximum data points to return (default: 100) |