Metrics and dimensions
The storage metrics and dimensions that Amazon S3 sends to Amazon CloudWatch are listed in the following tables.
Best-effort CloudWatch metrics delivery
CloudWatch metrics are delivered on a best-effort basis. Most requests for an Amazon S3 object that have request metrics result in a data point being sent to CloudWatch.
The completeness and timeliness of metrics are not guaranteed. The data point for a particular request might be returned with a timestamp that is later than when the request was actually processed. The data point for a minute might be delayed before being available through CloudWatch, or it might not be delivered at all. CloudWatch request metrics give you an idea of the nature of traffic against your bucket in near-real time. It is not meant to be a complete accounting of all requests.
It follows from the best-effort nature of this feature that the reports available
at the Billing & Cost
Management Dashboard
Topics
- Amazon S3 daily storage metrics for buckets in CloudWatch
- Amazon S3 request metrics in CloudWatch
- S3 Replication metrics in CloudWatch
- S3 Storage Lens metrics in CloudWatch
- S3 Object Lambda request metrics in CloudWatch
- Amazon S3 dimensions in CloudWatch
- S3 Replication dimensions in CloudWatch
- S3 Storage Lens dimensions in CloudWatch
- S3 Object Lambda request dimensions in CloudWatch
- Amazon S3 usage metrics
Amazon S3 daily storage metrics for buckets in CloudWatch
The AWS/S3
namespace includes the following daily storage metrics for
buckets.
Metric | Description |
---|---|
BucketSizeBytes |
The amount of data in bytes that is stored in a bucket in the following storage classes:
This value is calculated by summing the size of all objects and metadata (such as bucket names) in the bucket (both current and noncurrent objects), including the size of all parts for all incomplete multipart uploads to the bucket. NoteThe S3 Express One Zone storage class is available only for directory buckets. Valid storage-type filters (see the
Units: Bytes Valid statistics: Average For more information about the |
NumberOfObjects |
The total number of objects stored in a general purpose bucket for all storage classes. This value is calculated by counting all objects in the bucket, which includes current and noncurrent objects, delete markers, and the total number of parts for all incomplete multipart uploads to the bucket. For directory buckets with objects in the S3 Express One Zone storage class, this value is calculated by counting all objects in the bucket, but it doesn't include incomplete multiple uploads to the bucket. Valid storage type filters: Units: Count Valid statistics: Average |
Amazon S3 request metrics in CloudWatch
The AWS/S3
namespace includes the following request metrics. These
metrics include non-billable requests (in the case of GET
requests from
CopyObject
and Replication).
Note
Amazon S3 request metrics in CloudWatch aren't supported for directory buckets.
Metric | Description |
---|---|
AllRequests |
The total number of HTTP requests made to an Amazon S3 bucket, regardless of type. If you're using a metrics configuration with a filter, then this metric returns only the HTTP requests that meet the filter's requirements. Units: Count Valid statistics: Sum |
GetRequests |
The number of HTTP Units: Count Valid statistics: Sum NotePaginated list-oriented requests, such as ListMultipartUploads, ListParts, ListObjectVersions, and others, are not included in this metric. |
PutRequests |
The number of HTTP Units: Count Valid statistics: Sum |
DeleteRequests |
The number of HTTP Units: Count Valid statistics: Sum |
HeadRequests |
The number of HTTP Units: Count Valid statistics: Sum |
PostRequests |
The number of HTTP Units: Count Valid statistics: Sum NoteDeleteObjects and SelectObjectContent requests are not included in this metric. |
SelectRequests |
The number of Amazon S3 SelectObjectContent requests made for objects in an Amazon S3 bucket. Units: Count Valid statistics: Sum |
SelectBytesScanned |
The number of bytes of data scanned with Amazon S3 SelectObjectContent requests in an Amazon S3 bucket. Units: Bytes Valid statistics: Average (bytes per request), Sum (bytes per period), Sample Count, Min, Max (same as p100), any percentile between p0.0 and p99.9 |
SelectBytesReturned |
The number of bytes of data returned with Amazon S3 SelectObjectContent requests in an Amazon S3 bucket. Units: Bytes Valid statistics: Average (bytes per request), Sum (bytes per period), Sample Count, Min, Max (same as p100), any percentile between p0.0 and p99.9 |
ListRequests |
The number of HTTP requests that list the contents of a bucket. Units: Count Valid statistics: Sum |
BytesDownloaded |
The number of bytes downloaded for requests made to an Amazon S3 bucket, where the response includes a body. Units: Bytes Valid statistics: Average (bytes per request), Sum (bytes per period), Sample Count, Min, Max (same as p100), any percentile between p0.0 and p99.9 |
BytesUploaded |
The number of bytes uploaded for requests made to an Amazon S3 bucket, where the request includes a body. Units: Bytes Valid statistics: Average (bytes per request), Sum (bytes per period), Sample Count, Min, Max (same as p100), any percentile between p0.0 and p99.9 |
4xxErrors |
The number of HTTP 4xx client error status code requests made to an Amazon S3 bucket with a value of either 0 or 1. The Average statistic shows the error rate, and the Sum statistic shows the count of that type of error, during each period. Units: Count Valid statistics: Average (reports per request), Sum (reports per period), Min, Max, Sample Count |
5xxErrors |
The number of HTTP 5xx server error status code requests made to an Amazon S3 bucket with a value of either 0 or 1. The Average statistic shows the error rate, and the Sum statistic shows the count of that type of error, during each period. Units: Count Valid statistics: Average (reports per request), Sum (reports per period), Min, Max, Sample Count |
FirstByteLatency |
The per-request time from the complete request being received by an Amazon S3 bucket to when the response starts to be returned. Units: Milliseconds Valid statistics: Average, Sum, Min, Max (same as p100), Sample Count, any percentile between p0.0 and p100 |
TotalRequestLatency |
The elapsed per-request time from the first byte received to
the last byte sent to an Amazon S3 bucket. This metric includes the
time taken to receive the request body and send the response
body, which is not included in
Units: Milliseconds Valid statistics: Average, Sum, Min, Max (same as p100), Sample Count, any percentile between p0.0 and p100 |
S3 Replication metrics in CloudWatch
You can monitor the progress of replication with S3 Replication metrics by tracking bytes pending, operations pending, and replication latency. For more information, see Monitoring progress with replication metrics.
Note
You can enable alarms for your replication metrics in Amazon CloudWatch. When you set up alarms for your replication metrics, set the Missing data treatment field to Treat missing data as ignore (maintain the alarm state).
Metric | Description |
---|---|
ReplicationLatency |
The maximum number of seconds by which the replication destination AWS Region is behind the source AWS Region for a given replication rule. Units: Seconds Valid statistics: Max |
BytesPendingReplication |
The total number of bytes of objects pending replication for a given replication rule. Units: Bytes Valid statistics: Max |
OperationsPendingReplication |
The number of operations pending replication for a given replication rule. Units: Count Valid statistics: Max |
OperationsFailedReplication |
The number of operations that failed to replicate for a given replication rule. Units: Count Valid statistics: Sum (total number of failed operations), Average (failure rate), Sample Count (total number of replication operations) |
S3 Storage Lens metrics in CloudWatch
You can publish S3 Storage Lens usage and activity metrics to Amazon CloudWatch to create a
unified view of your operational health in CloudWatch
dashboards. S3 Storage Lens metrics are published to the
AWS/S3/Storage-Lens
namespace in CloudWatch. The CloudWatch publishing option
is available for S3 Storage Lens dashboards that have been upgraded to advanced metrics and
recommendations.
For a list of S3 Storage Lens metrics that are published to CloudWatch, see Amazon S3 Storage Lens metrics glossary. For a complete list of dimensions, see Dimensions.
S3 Object Lambda request metrics in CloudWatch
S3 Object Lambda includes the following request metrics.
Metric | Description |
---|---|
AllRequests |
The total number of HTTP requests made to an Amazon S3 bucket by using an Object Lambda Access Point. Units: Count Valid statistics: Sum |
GetRequests |
The number of HTTP Units: Count Valid statistics: Sum |
BytesUploaded |
The number of bytes uploaded to an Amazon S3 bucket by using an Object Lambda Access Point, where the request includes a body. Units: Bytes Valid statistics: Average (bytes per request), Sum (bytes per period), Sample Count, Min, Max (same as p100), any percentile between p0.0 and p99.9 |
PostRequests |
The number of HTTP Units: Count Valid statistics: Sum |
PutRequests |
The number of HTTP Units: Count Valid statistics: Sum |
DeleteRequests |
The number of HTTP Units: Count Valid statistics: Sum |
BytesDownloaded |
The number of bytes downloaded for requests made to an Amazon S3 bucket by using an Object Lambda Access Point, where the response includes a body. Units: Bytes Valid statistics: Average (bytes per request), Sum (bytes per period), Sample Count, Min, Max (same as p100), any percentile between p0.0 and p99.9 |
FirstByteLatency |
The per-request time from the complete request being received by an Amazon S3 bucket through an Object Lambda Access Point to when the response starts to be returned. This metric is dependent on the AWS Lambda function's running time to transform the object before the function returns the bytes to the Object Lambda Access Point. Units: Milliseconds Valid statistics: Average, Sum, Min, Max (same as p100), Sample Count, any percentile between p0.0 and p100 |
TotalRequestLatency |
The elapsed per-request time from the first byte received to
the last byte sent to an Object Lambda Access Point. This metric includes the time
taken to receive the request body and send the response body,
which is not included in Units: Milliseconds Valid statistics: Average, Sum, Min, Max (same as p100), Sample Count, any percentile between p0.0 and p100 |
HeadRequests |
The number of HTTP Units: Count Valid statistics: Sum |
ListRequests |
The number of HTTP Units: Count Valid statistics: Sum |
4xxErrors |
The number of HTTP 4xx client error status code requests made to an Amazon S3 bucket by using an Object Lambda Access Point with a value of either 0 or 1. The Average statistic shows the error rate, and the Sum statistic shows the count of that type of error, during each period. Units: Count Valid statistics: Average (reports per request), Sum (reports per period), Min, Max, Sample Count |
5xxErrors |
The number of HTTP 5xx server error status code requests made to an Amazon S3 bucket by using an Object Lambda Access Point with a value of either 0 or 1. The Average statistic shows the error rate, and the Sum statistic shows the count of that type of error, during each period. Units: Count Valid statistics: Average (reports per request), Sum (reports per period), Min, Max, Sample Count |
ProxiedRequests |
The number of HTTP requests to an Object Lambda Access Point that return the standard Amazon S3 API response. (Such requests do not have a Lambda function configured.) Units: Count Valid statistics: Sum |
InvokedLambda |
The number of HTTP requests to an S3 object where a Lambda function was invoked. Units: Count Valid statistics: Sum |
LambdaResponseRequests |
The number of |
LambdaResponse4xx |
The number of HTTP 4xx
client errors that occur when calling
|
LambdaResponse5xx |
The number of HTTP 5xx
server errors that occur when calling
|
Amazon S3 dimensions in CloudWatch
The following dimensions are used to filter Amazon S3 metrics.
Dimension |
Description |
---|---|
BucketName
|
This dimension filters the data that you request for the identified bucket only. |
StorageType
|
This dimension filters the data that you have stored in a bucket by the following types of storage:
|
FilterId |
This dimension filters metrics configurations that you specify for the request metrics on a bucket. When you create a metrics configuration, you specify a filter ID (for example, a prefix, a tag, or an access point). For more information, see Creating a metrics configuration. |
S3 Replication dimensions in CloudWatch
The following dimensions are used to filter S3 Replication metrics.
Dimension |
Description |
---|---|
SourceBucket
|
The name of the bucket objects are replicated from. |
DestinationBucket
|
The name of the bucket objects are replicated to. |
RuleId
|
A unique identifier for the rule that triggered this replication metric to update. |
S3 Storage Lens dimensions in CloudWatch
For a list of dimensions that are used to filter S3 Storage Lens metrics in CloudWatch, see Dimensions.
S3 Object Lambda request dimensions in CloudWatch
The following dimensions are used to filter data from an Object Lambda Access Point.
Dimension | Description |
---|---|
AccessPointName |
The name of the access point of which requests are being made. |
DataSourceARN |
The source the Object Lambda Access Point is retrieving the data from. If the request invokes a Lambda function this refers to the Lambda Amazon Resource Name (ARN). Otherwise this refers to the access point ARN. |
Amazon S3 usage metrics
You can use CloudWatch usage metrics to provide visibility into your account's usage of resources. Use these metrics to visualize your current service usage on CloudWatch graphs and dashboards.
Amazon S3 usage metrics correspond to AWS service quotas. You can configure alarms that alert you when your usage approaches a service quota. For more information about CloudWatch integration with service quotas, see AWS usage metrics in the Amazon CloudWatch User Guide.
Amazon S3 publishes the following metrics in the AWS/Usage
namespace.
Metric | Description |
---|---|
|
The number of the specified resources running in your account. The resources are defined by the dimensions associated with the metric. |
The following dimensions are used to refine the usage metrics that are published by Amazon S3.
Dimension | Description |
---|---|
Service
|
The name of the AWS service containing the resource. For
Amazon S3 usage metrics, the value for this dimension is
|
Type
|
The type of entity that is being reported. Currently, the only
valid value for Amazon S3 usage metrics is
|
Resource
|
The type of resource that is running. Currently, the only
valid value for Amazon S3 usage metrics is
|