‹ Return to How tos

Viewing distribution metrics in Amazon Lightsail

Last updated: July 23, 2020

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 in Amazon Lightsail.

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 in Amazon Lightsail and Alarms in Amazon Lightsail.


Distribution metrics available in Lightsail

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.

Viewing 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:

Next steps after viewing your distribution metrics

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

Additional information

Here are some articles to help you manage distributions in Lightsail: