View Lightsail distribution metrics - Amazon Lightsail

View Lightsail distribution metrics

After you create a distribution in Amazon Lightsail, you can view its metric graphs on the Metrics tab of the distribution’s management page. Monitoring metrics is an important part of maintaining the reliability, availability, and performance of your resources. Monitor and collect metric data from your resources regularly so that you can more readily debug a multi-point failure, if one occurs. For more information about metrics, see Metrics.

When monitoring your resources, you should establish a baseline for normal resource performance in your environment. Then you can configure alarms in the Lightsail console to notify you when your resources are performing outside of specified thresholds. For more information, see Notifications and Alarms.

Contents

Distribution metrics

The following distribution metrics are available:

  • Requests — The total number of viewer requests received by your distribution, for all HTTP methods, and for both HTTP and HTTPS requests.

  • Bytes uploaded — The number of bytes uploaded to your origin by your distribution, using POST and PUT requests.

  • Bytes downloaded — The number of bytes downloaded by viewers for GET, HEAD, and OPTIONS requests.

  • Total error rate — The percentage of all viewer requests for which the response’s HTTP status code was 4xx or 5xx.

  • HTTP 4xx error rate — The percentage of all viewer requests for which the response’s HTTP status code was 4xx. In these cases, the client or client viewer may have made an error. For example, a status code of 404 (Not Found) means that the client requested an object that could not be found.

  • HTTP 5xx error rate — The percentage of all viewer requests for which the response’s HTTP status code was 5xx. In these cases, the origin server did not satisfy the request. For example, a status code of 503 (Service Unavailable) means that the origin server is currently unavailable.

View distribution metrics in the Lightsail console

Complete the following procedure to view distribution metrics in the Lightsail console.

  1. Sign in to the Lightsail console.

  2. On the Lightsail home page, choose the Networking tab.

  3. Choose the name of the distribution for which you want to view metrics.

  4. Choose the Metrics tab on the distribution management page.

  5. Choose the metric that you want to view in the drop-down menu under the Metrics graphs heading.

    The graph displays a visual representation of the data points for the chosen metric.

  6. You can perform the following actions on the metrics graph:

    • Change the view of the graph to show data for 1 hour, 6 hours, 1 day, 1 week, and 2 weeks.

    • Pause your cursor on a data point to view detailed information about that data point.

    • Add an alarm for the chosen metric to be notified when the metric crosses a threshold you specify. For more information, see Alarms and Create instance metric alarms.

Next steps after viewing your distribution metrics

There are a few additional tasks that you can perform for your distribution metrics:

  • Add an alarm for the chosen metric to be notified when the metric crosses a threshold you specify. For more information, see Alarms and Create distribution metric alarms.

  • When an alarm is triggered, a notification banner is displayed in the Lightsail console. To be notified by email and SMS text message, you must add your email address and mobile phone number as notification contacts in each AWS Region where you want to monitor your resources. For more information, see Add notification contacts.

  • To stop receiving notifications, you can remove your email and mobile phone from Lightsail. For more information, see Delete or disable metric alarms. You can also disable or delete an alarm to stop receiving notifications for a specific alarm. For more information, see Delete or disable metric alarms.