Skip to content

How do I use the S3 Storage Lens dashboard to view prefix-level metrics for my Amazon S3 bucket?

3 minute read
0

I want to use Amazon S3 Storage Lens dashboards to view prefix-level usage and request metrics for my Amazon Simple Storage Service (Amazon S3) buckets.

Resolution

Prefix-level usage and request data require advanced metrics. In your S3 Storage Lens dashboard configuration, choose Advanced metrics and recommendations. 

When you choose Advanced metrics and recommendations, the dashboard includes the following metrics categories:

  • Summary metrics
  • Cost-optimization metrics
  • Data-protection metrics
  • Access-management metrics
  • Event metrics
  • Performance metrics
  • Activity metrics (advanced)
  • Detailed status code metrics (advanced)

Choose the Advanced metrics and Prefix aggregation options

To use advanced metrics and recommendations, see Create an Amazon S3 Storage Lens dashboard. Under Metrics selection, choose Advanced metrics and recommendations. Then, under Advanced metrics and recommendations features, select Prefix aggregation. To track request metrics at the bucket and prefix level, select Activity metrics under the Advanced metrics categories.

You can also update an existing dashboard to include advanced metrics and recommendations and prefix aggregation. 

Note:

  • To create or edit the Storage Lens dashboard, grant the AWS Identity and Access Management (IAM) user or role the necessary permissions. 
  • After you create the dashboard, the metrics take up to 48 hours to publish.
  • The dashboard generates metrics only for prefixes that meet the configured threshold. Metrics that apply at the prefix level are available with Prefix aggregation, except for bucket-level settings and rule count metrics.
  • Prefix-level metrics are not published to Amazon CloudWatch.

View the prefix-level metrics on the dashboard

Complete the following steps:

  1. Open the Amazon S3 console.
  2. Under Storage Lens, in the Dashboard list, select your dashboard.
  3. Choose the Prefixes tab. By default, the dashboard shows metrics for the top 10 prefixes. You can increase this number up to 50.
  4. In the Prefixes section, view usage metrics for the top number of prefixes. On the Metrics categories dropdown list, you can choose metrics that are grouped into categories.
  5. Determine the size of listed prefixes from the Total storage and Object count metrics.

To view the prefix-level metrics for a specific S3 bucket or prefix, complete the following steps:

  1. On the Dashboard page in Storage Lens, choose Filters.
    Note: By default, Accounts, AWS Regions, Storage classes, Buckets, and Prefixes are selected.
  2. On the dropdown list for Bucket or Prefixes, select your bucket or prefix.
  3. Choose Apply.
  4. On the Overview tab, in the Metrics categories dropdown list, choose metrics categories to view.
  5. To view data for a specific metric, choose the metric from the Metric dropdown list in any section of the S3 Storage Lens dashboard.

Related information

Optimize costs and gain visibility into usage with Amazon S3 Storage Lens

Why is there a discrepancy in storage and size metrics between the Amazon S3 console, CloudWatch, and S3 Storage Lens?

Amazon S3 Storage Lens: comprehensive analytics for optimizing cloud storage usage and costs

AWS OFFICIALUpdated 2 years ago