Visualizing your service quotas and setting alarms - Amazon ECR
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Visualizing your service quotas and setting alarms

You can use the CloudWatch console to visualize your service quotas and see how your current usage compares to service quotas. You can also set alarms so that you will be notified when you approach a quota.

To visualize a service quota and optionally set an alarm
  1. Open the CloudWatch console at https://console.amazonaws.cn/cloudwatch/.

  2. In the navigation pane, choose Metrics.

  3. On the All metrics tab, choose Usage, then choose By Amazon Resource.

    The list of service quota usage metrics appears.

  4. Select the check box next to one of the metrics.

    The graph displays your current usage of that Amazon resource.

  5. To add your service quota to the graph, do the following:

    1. Choose the Graphed metrics tab.

    2. Choose Math expression, Start with an empty expression. Then in the new row, under Details, enter SERVICE_QUOTA(m1).

      A new line is added to the graph, displaying the service quota for the resource represented in the metric.

  6. To see your current usage as a percentage of the quota, add a new expression or change the current SERVICE_QUOTA expression. For the new expression, use m1/60/SERVICE_QUOTA(m1)*100.

  7. (Optional) To set an alarm that notifies you if you approach the service quota, do the following:

    1. On the m1/60/SERVICE_QUOTA(m1)*100 row, under Actions, choose the alarm icon. It looks like a bell.

      The alarm creation page appears.

    2. Under Conditions, ensure that Threshold type is Static and Whenever Expression1 is is set to Greater. Under than, enter 80. This creates an alarm that goes into ALARM state when your usage exceeds 80 percent of the quota.

    3. Choose Next.

    4. On the next page, select an Amazon SNS topic or create a new one. This topic is notified when the alarm goes to ALARM state. Then choose Next.

    5. On the next page, enter a name and description for the alarm, and then choose Next.

    6. Choose Create alarm.