Add or remove a graph from a CloudWatch dashboard - Amazon CloudWatch

Add or remove a graph from a CloudWatch dashboard

You can add graphs that contain one or more metrics to your CloudWatch dashboard. The types of graphs that you can add to your dashboard include Line, Stacked area, Number, Gauge, Bar, and Pie. You can remove graphs from your dashboard when you don't need them anymore. The procedures in this section describe how to add and remove graphs from your dashboard. For information about how to edit a graph on your dashboard, see Edit a graph on a CloudWatch dashboard.

To add a graph to a dashboard

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

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

  3. Choose the + symbol, and then select the graph that you want to add to your dashboard.

    1. If you select Line, Stacked area, Bar, or Pie, choose Metrics.

  4. Choose Browse, and then select the metric that you want to graph on your dashboard.

  5. (Optional) To change your graph's time range, select one of the predefined time ranges in the upper-right corner of your graph. The time ranges span from 1 hour to 1 week (1h, 3h, 12h, 1d, 3d, or 1w).

    1. To set your own time range, choose Custom.

  6. (Optional) To change your graph's widget type, choose Options, and then select a new widget type.

    Tip

    You can change your graph's widget type by choosing the dropdown that's next to the predefined time ranges.

  7. (Optional) In Graphed metrics, you can add a dynamic label to your metric and change your metric's label, label color, statistic, and period. You also can determine the position of labels on the Y-axis from left to right.

    1. To add a dynamic label, choose Graphed metrics, and then choose Add dynamic labels. Dynamic labels display a statistic about your metric in the graph legend. Dynamic labels update automatically when your dashboard or graph refreshes. By default, the dynamic values that you add to labels appear at the beginning of your labels. For more information, see Using dynamic labels.

    2. To change the color of a metric, choose the color square that's next to the metric.

    3. To change the statistic, select the dropdown under Statistic, and then choose a new value. For more information, see Statistics.

    4. To change the period, select the dropdown under the Period column, and then choose a new value.

  8. (Optional) To customize the Y-axis, choose Options. You can add a custom label under Left Y-axis in the label field. If your graph displays values on the right side of the Y-axis, you can customize that label, too. You also can set minimum and maximum limits on your Y-axis values, so that your graph only displays the value ranges that you specify.

  9. (Optional) To add or edit horizontal annotations, choose Options:

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

    2. For Label, choose the pen and paper icon that's next to the current annotation, and enter your new annotation.

    3. For Value, choose the pen and paper icon that's next to the current value, and enter your new value.

    4. For Fill, select the dropdown and specify how your annotation will use shading. You can choose None, Above, Between, or Below. To change the fill color, choose the color square that's next to the annotation.

    5. For Axis, specify whether your annotation appears on the left or right side of the Y-axis.

    6. To hide an annotation, clear the check box that's next to the annotation you want to hide.

    7. To delete an annotation, choose X under Actions.

    Note

    You can repeat these steps to add multiple horizontal annotations to the same graph.

  10. (Optional) To add or edit vertical annotations, choose Options:

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

    2. For Label, choose the pen and paper icon that's next to the current annotation, and enter your new annotation. If you want to show only the date and time, leave the label field blank.

    3. For Date, choose the current date and time, and enter the new date and time.

    4. For Fill, select the dropdown, and specify how your annotation will use shading. You can choose None, Above, Between, or Below. To change the fill color, select the color square that's next to the annotation.

    5. To hide an annotation, clear the check box next to the annotation that you want to hide.

    6. To delete an annotation, choose X under Actions.

    Note

    You can repeat these steps to add multiple vertical annotations to the same graph.

  11. Choose Create widget.

  12. Choose Save dashboard.

To remove a graph from a dashboard

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

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

  3. In the upper-right corner of the graph that you want to remove, choose Widget actions, and then choose Delete.

  4. Choose Save dashboard.