Choose Source, and then enter the JSON block for the metric that you want to graph. See the following examples.
Example JSON to retrieve the CPUUtilization metric from a deleted Amazon Elastic Compute Cloud (Amazon EC2) instance:
Note: Replace example-instance-id with your instance's ID and example-region with your AWS Region.
{ "view": "timeSeries",
"stacked": false,
"metrics": [
[ "AWS/EC2", "CPUUtilization", "InstanceId", "example-instance-id" ]
],
"region": "example-region"}
Example JSON to retrieve the RequestCount metric that contains LoadBalancer and AvailabilityZone dimensions from a deleted load balancer:
Note: Replace example-lb-name with the name of the load balancer, example-az with your Availability Zone, and example-region with your Region.
{ "view": "timeSeries",
"stacked": false,
"metrics": [
[ "AWS/ELB", "RequestCount", "LoadBalancerName", "example-lb-name", "AvailabilityZone", "example-az" ],
[ "AWS/ELB", "RequestCount", "LoadBalancerName", "example-lb-name", "AvailabilityZone", "example-az" ]
],
"region": "example-region"
}
(Optional) If there are multiple dimensions in the metric that you want to graph, then use the following format to include them in the metrics section:
["NameSpace", "MetricName", "Dimension Key1", "Dimension Value1", "Dimension Key2", "Dimension Value2", ... ]
(Optional) To graph multiple metrics, make sure to add a comma after the end bracket. Then, add the following to the metrics section:
["NameSpace1", "MetricName1", "Dimension Key1", "Dimension Value1"], ["NameSpace2", "MetricName2", "Dimension Key2, "Dimension Value2"]