You can find information following about how to monitor a gateway's upload buffer and how to create an alarm so that you get a notification when the buffer exceeds a specified threshold. By using this approach, you can add buffer storage to a gateway before it fills completely and your storage application stops backing up to AWS.
You monitor the upload buffer in the same way in both the cached-volume and Tape Gateway architectures. For more information, see How Volume Gateway works.
Note
The WorkingStoragePercentUsed
, WorkingStorageUsed
, and
WorkingStorageFree
metrics represent the upload buffer for stored
volumes only before the release of the cached-volume feature in Storage Gateway. Now,
use the equivalent upload buffer metrics UploadBufferPercentUsed
,
UploadBufferUsed
, and UploadBufferFree
. These metrics
apply to both gateway architectures.
Item of Interest | How to Measure |
---|---|
Upload buffer usage |
Use the |
To measure the percent of the upload buffer that is used
Open the CloudWatch console at https://console.aws.amazon.com/cloudwatch/
. -
Choose the StorageGateway: Gateway Metrics dimension, and find the gateway that you want to work with.
-
Choose the
UploadBufferPercentUsed
metric. -
For Time Range, choose a value.
-
Choose the
Average
statistic. -
For Period, choose a value of 5 minutes to match the default reporting time.
The resulting time-ordered set of data points contains the percent used of the upload buffer.
Using the following procedure, you can create an alarm using the CloudWatch console. To learn more about alarms and thresholds, see Creating CloudWatch Alarms in the Amazon CloudWatch User Guide.
To set an upper threshold alarm for a gateway's upload buffer
Open the CloudWatch console at https://console.aws.amazon.com/cloudwatch/
. -
Choose Create Alarm to start the Create Alarm wizard.
-
Specify a metric for your alarm:
-
On the Select Metric page of the Create Alarm wizard, choose the AWS/StorageGateway:GatewayId,GatewayName dimension, and then find the gateway that you want to work with.
-
Choose the
UploadBufferPercentUsed
metric. Use theAverage
statistic and a period of 5 minutes. -
Choose Continue.
-
-
Define the alarm name, description, and threshold:
-
On the Define Alarm page of the Create Alarm wizard, identify your alarm by giving it a name and description in the Name and Description boxes.
-
Define the alarm threshold.
-
Choose Continue.
-
-
Configure an email action for the alarm:
-
On the Configure Actions page of the Create Alarm wizard, choose Alarm for Alarm State.
-
Choose Choose or create email topic for Topic.
To create an email topic means that you set up an Amazon SNS topic. For more information about Amazon SNS, see Set Up Amazon SNS in the Amazon CloudWatch User Guide.
-
For Topic, enter a descriptive name for the topic.
-
Choose Add Action.
-
Choose Continue.
-
-
Review the alarm settings, and then create the alarm:
-
On the Review page of the Create Alarm wizard, review the alarm definition, metric, and associated actions to take (for example, sending an email notification).
-
After reviewing the alarm summary, choose Save Alarm.
-
-
Confirm your subscription to the alarm topic:
-
Open the Amazon SNS email that was sent to the email address that you specified when creating the topic.
-
Confirm your subscription by clicking the link in the email.
A subscription confirmation appears.
-