cloudwatch_get_metrics
Retrieve CloudWatch metric data for a specific namespace, metric, dimensions, and time range to analyze AWS resource performance and support incident investigation.
Instructions
Get CloudWatch metric data for a specific metric over a time range
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"namespace": "<namespace>",
"metricName": "<metricName>"
},
"name": "cloudwatch_get_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stat | No | The statistic to retrieve | Average |
| period | No | The granularity in seconds (minimum 60, default 300) | |
| region | No | AWS region | |
| endTime | No | End time in ISO format (defaults to now) | |
| namespace | Yes | The CloudWatch namespace (e.g., AWS/EC2, AWS/RDS, AWS/Lambda) | |
| startTime | No | Start time in ISO format (defaults to 1 hour ago) | |
| dimensions | No | Metric dimensions for filtering (e.g., [{name: 'InstanceId', value: 'i-12345'}]) | |
| metricName | Yes | The name of the metric (e.g., CPUUtilization, Duration) |