AWS Storage Gateway User Guide
Logging Storage Gateway API Calls with AWS CloudTrail
To measure the data latency from a tape gateway to AWS
1. Open the CloudWatch console at
https://console.amazonaws.cn/cloudwatch/
2. Choose the
Metrics
tab.
3. Choose the
StorageGateway: GatewayMetrics
dimension, and find the tape gateway that you want
to work with.
4. Choose the
CloudDownloadLatency
metric.
5. For
Time Range
, choose a value.
6. Choose the
Average
statistic.
7. For
Period
, choose a value of 5 minutes to match the default reporting time.
The resulting time-ordered set of data points contains the latency in milliseconds.
To set an upper threshold alarm for a tape gateway's throughput to AWS
1. Open the CloudWatch console at
https://console.amazonaws.cn/cloudwatch/
2. Choose
Create Alarm
to start the Create Alarm Wizard.
3. Choose the
StorageGateway: Gateway Metrics
dimension, and find the tape gateway that you want
to work with.
4. Choose the
CloudBytesUploaded
metric.
5. Define the alarm by defining the alarm state when the
CloudBytesUploaded
metric is greater
than or equal to a specified value for a specified time. For example, you can define an alarm state
when the
CloudBytesUploaded
metric is greater than 10 megabytes for 60 minutes.
6. Configure the actions to take for the alarm state. For example, you can have an email notification
sent to you.
7. Choose
Create Alarm
.
To set an upper threshold alarm for reading data from AWS
1. Open the CloudWatch console at
https://console.amazonaws.cn/cloudwatch/
2. Choose
Create Alarm
to start the Create Alarm Wizard.
3. Choose the
StorageGateway: Gateway Metrics
dimension, and find the tape gateway that you want
to work with.
4. Choose the
CloudDownloadLatency
metric.
5. Define the alarm by defining the alarm state when the
CloudDownloadLatency
metric is greater
than or equal to a specified value for a specified time. For example, you can define an alarm state
when the
CloudDownloadLatency
is greater than 60,000 milliseconds for greater than 2 hours.
6. Configure the actions to take for the alarm state. For example, you can have an email notification
sent to you.
7. Choose
Create Alarm
.
Logging Storage Gateway API Calls with AWS
CloudTrail
AWS Storage Gateway is integrated with AWS CloudTrail, a service that provides a record of actions
taken by a user, role, or an AWS service in Storage Gateway. CloudTrail captures all API calls for Storage
API Version 2013-06-30
215