Amazon CloudWatch
User Guide

Edit a Graph on a CloudWatch Dashboard

You can edit a graph to change the title, statistic, or period, or to add or remove metrics. If you have multiple metrics displayed on a graph, you can reduce the clutter by temporarily hiding the metrics that don't interest you.

To edit a graph on a dashboard

  1. Open the CloudWatch console at https://console.aws.amazon.com/cloudwatch/.

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

  3. Hover over the title of the graph and choose Widget actions, Edit.

  4. To change the graph's title, select the title, type a new title, and press ENTER.

  5. To change the time range shown on the graph, choose either custom at the top of the graph, or one of the time periods to the left of custom.

  6. To change the type of widget between separate lines on a graph, stacked lines on a graph, and a number, choose the box next to the right of custom and select either Line, Stacked area, or Number.

  7. In the lower half of the screen, in the Graphed metrics tab, you can change the colors, statistic, or period:

    1. To change the color of one of the lines, select the color square next to the metric to display a color picker box. Choose another color in the color picker, and click outside the color picker to see your new color on the graph. Alternatively, in the color picker, you can type the six-digit HTML hex color code for the color you want and press ENTER.

    2. To change the statistic, choose Statistic in the lower half of the window, and choose the new statistic you want. For more information, see Statistics.

    3. To change the time period, which is next to Statistic in the lower half of the window, choose Period and select another value. This new setting is used on the dashboard only if the period setting of the dashboard itself is set to Auto. Otherwise, the period setting of the dashboard overrides the period setting for individual widgets.

  8. To add or edit horizontal annotations, choose Graph options:

    1. To add a horizontal annotation, choose Add horizontal annotation.

    2. For Label, type a label for the annotation.

    3. For Value, type the metric value where the horizontal annotation appears.

    4. For Fill, specify how to use fill shading with this annotation. For example, choose Above or Below for the corresponding area to be filled. If you specify Between, another Value field appears, and the area of the graph between the two values is filled.

      You can change the fill color of an annotation by choosing the color square in the left column of the annotation.

    5. For Axis, specify whether the numbers in Value refer to the metric associated with the left Y-axis or the right Y-axis, if the graph includes multiple metrics.

    Repeat these steps to add multiple horizontal annotations to the same graph.

    To hide an annotation, clear the check box in the left column for that annotation.

    To delete an annotation, click the x in the Actions column.

  9. To add or edit vertical annotations, choose Graph options: Add vertical annotation:

    1. To add a vertical annotation, choose Add vertical annotation.

    2. For Label, type a label for the annotation. To show only the date and time on the annotation, keep the Label field blank.

    3. For Date, specify the date and time where the vertical annotation appears.

    4. For Fill, specify whether to use fill shading before or after a vertical annotation, or between two vertical annotations. For example, choose Before or After for the corresponding area to be filled. If you specify Between, another Date field appears, and the area of the graph between the two values is filled.

    Repeat these steps to add multiple vertical annotations to the same graph.

    To hide an annotation, clear the check box in the left column for that annotation.

    To delete an annotation, choose x in the Actions column.

  10. To hide or change the position of the graph legend, hover over the title of the graph and choose Widget actions, Edit. Hover over Legend and choose Hidden, Bottom, or Right.

  11. To customize the Y-axis, choose Graph options. You can type a custom label in Label under Left Y Axis. If the graph also displays values on the right Y-axis, you can customize that label as well. You can also set minimums and maximums on the Y-axis values, and the graph displays only the value range you specify.

  12. When you're finished with your changes, choose Update widget.

To temporarily hide metrics for a graph on a dashboard

  1. Open the CloudWatch console at https://console.aws.amazon.com/cloudwatch/.

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

  3. In the graph's footer, hover over the colored square in the legend. When it changes to an X, click it.

  4. To restore the metric, choose the grayed out square and metric name.