Amazon CloudWatch
User Guide

Graph Metrics Manually on a CloudWatch Dashboard

If a metric has not published data in the past 14 days, you cannot find it when searching for metrics to add to a graph on a CloudWatch dashboard. Use the following steps to add any metric manually to an existing graph.

To add a metric that you cannot find in search to a graph

  1. Open the CloudWatch console at

  2. In the navigation pane, choose Dashboards and select a dashboard.

  3. The dashboard must already contain a graph where you want to add the metric. If it does not already, create the graph and add any metric to it. For more information, see Add or Remove a Graph from a CloudWatch Dashboard.

  4. Choose Actions, View/edit source.

    A JSON block appears. The block specifies the widgets on the dashboard and their contents. The following is an example of one part of this block, which defines one graph.

    { "type": "metric", "x": 0, "y": 0, "width": 6, "height": 3, "properties": { "view": "singleValue", "metrics": [ [ "AWS/EBS", "VolumeReadOps", "VolumeId", "vol-1234567890abcdef0" ] ], "region": "us-west-1" } },

    In this example, the following section defines the metric shown on this graph.

    [ "AWS/EBS", "VolumeReadOps", "VolumeId", "vol-1234567890abcdef0" ]
  5. Add a comma after the end bracket if there is not already one, and then add a similar bracketed section after the comma. In this new section, specify the namespace, metric name, and any necessary dimensions of the metric you are adding to the graph. The following is an example:

    [ "AWS/EBS", "VolumeReadOps", "VolumeId", "vol-1234567890abcdef0" ], [ "MyNamespace", "MyMetricName", "DimensionName", "DimensionValue" ]

    For more information about the formatting of metrics in JSON, see Properties of a Metric Widget Object.

  6. Choose Update.