Monitor Lightsail instance performance with metrics
After you launch an instance in Amazon Lightsail, you can view its metric graphs on the Metrics tab of the instance’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 and Alarms.
Contents
Available instance metrics
The following instance metrics are available:
-
CPU utilization (
CPUUtilization
) — The percentage of allocated compute units that are currently in use on the instance. This metric identifies the processing power to run the applications on the instance. Tools in your operating system can show a lower percentage than Lightsail when the instance is not allocated a full processor core.When viewing the CPU utilization metric graphs for your instances in the Lightsail console, you will see sustainable, and burstable zones. For more information about what these zones mean, see CPU utilization sustainable and burstable zones.
-
Burst capacity minutes (
BurstCapacityTime
) and percentage (BurstCapacityPercentage
) — Burst capacity minutes represent the amount of time available for your instance to burst at 100% CPU utilization. Burst capacity percentage is the percentage of CPU performance available to your instance. Your instance continuously consumes and accrues burst capacity. Burst capacity minutes are consumed at the full rate only when your instance operates at 100% CPU utilization. For more information about instance burst capacity, see View instance burst capacity. -
Incoming network traffic (
NetworkIn
) — The number of bytes received on all network interfaces by the instance. This metric identifies the volume of incoming network traffic to the instance. The number reported is the number of bytes received during the period. Because this metric is reported in 5-minute intervals, divide the reported number by 300 to find Bytes/second. -
Outgoing network traffic (
NetworkOut
) — The number of bytes sent out on all network interfaces by the instance. This metric identifies the volume of outgoing network traffic from the instance. The number reported is the number of bytes sent during the period. Because this metric is reported in 5-minute intervals, divide the reported number by 300 to find Bytes/second. -
Status check failures (
StatusCheckFailed
) — Reports whether the instance passed or failed both the instance status check and the system status check. This metric can be either 0 (passed) or 1 (failed). This metric is available at a 1-minute frequency. -
Instance status check failures (
StatusCheckFailed_Instance
) — Reports whether the instance passed or failed the instance status check. This metric can be either 0 (passed) or 1 (failed). This metric is available at a 1-minute frequency. -
System status check failures (
StatusCheckFailed_System
) — Reports whether the instance passed or failed the system status check. This metric can be either 0 (passed) or 1 (failed). This metric is available at a 1-minute frequency. -
No token metadata requests (
MetadataNoToken
) — The number of times that the instance metadata service was successfully accessed without a token. This metric determines if there are any processes accessing instance metadata by using Instance Metadata Service Version 1, which doesn't use a token. If all requests use token-backed sessions, such as Instance Metadata Service Version 2, then the value is 0. For more information, see Instance metadata and user data.
CPU utilization sustainable and burstable zones
Lightsail uses burstable instances which provide a baseline amount of CPU performance, but also have the ability to temporarily provide additional CPU performance above the baseline as needed. This is referred to as bursting. With burstable instances, you don’t have to over-provision your instance to handle occasional performance spikes—you don’t have to pay for capacity you never use.
On the CPU utilization metric graph for your instances, you will see a sustainable zone, and a burstable zone. Your Lightsail instance can operate in the sustainable zone indefinitely with no impact to the operation of your system.
Your instance may begin operating in the burstable zone when under heavy load, such as when compiling code, installing new software, running a batch job, or serving peak load requests. While operating in the burstable zone, your instance is consuming a higher amount of CPU cycles. Therefore, it can only operate in this zone for a limited period of time.
The period of time your instance can operate in the burstable zone is dependent on how far into the burstable zone it is. An instance operating in the lower end of the burstable zone can burst for a longer period of time than an instance operating in the higher end of the burstable zone. However, an instance that is anywhere in the burstable zone for a sustained period of time will eventually use up all the CPU capacity until it operates in the sustainable zone again.
Monitor your instance’s CPU utilization metric to see how its performance is distributed between the sustainable and burstable zones. If your system only occasionally moves into the burstable zone, you should be fine continuing to use the instance that you’re running. However, if you see your instance spending a considerable amount of time in the burstable zone, you might want to switch to a larger plan for your instance (use the $12 USD/month plan instead of the $5 USD/month plan). You can switch to a larger plan by creating a new snapshot of your instance, and then creating a new instance from the snapshot.
View instance metrics in the Lightsail console
Complete the following steps to view instance metrics in the Lightsail console.
-
Sign in to the Lightsail console
. -
In the left navigation pane, choose Instances.
-
Choose the name of the instance for which you want to view metrics.
-
Choose the Metrics tab on the instance management page.
-
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.
Note
When viewing the CPU utilization metric graphs for your instances in the Lightsail console, you will see sustainable, and burstable zones. For more information about these zones, see CPU utilization sustainable and burstable zones.
-
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
There are a few additional tasks that you can perform for your instance metrics:
-
Add an alarm for the chosen metric to be notified when the metric crosses a threshold you specify. For more information, see Metric alarms and Create instance 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.