View a markdown version of this page

Gaining visibility into your S3 Tables storage activity and usage with Amazon S3 Storage Lens for Tables - Amazon Simple Storage Service

Gaining visibility into your S3 Tables storage activity and usage with Amazon S3 Storage Lens for Tables

Amazon S3 Storage Lens for Tables is a cloud-storage analytics feature that you can use to gain visibility into the storage, activity, and maintenance of your S3 Tables. It measures your table buckets and the Apache Iceberg tables inside them, and it refreshes those metrics one time per day.

You can use Amazon S3 Storage Lens for Tables metrics to answer questions about your tables – for example, which tables are growing fastest and hold the most data, how many small files a table accumulates and whether managed compaction is keeping up, which tables are read and written the most, and how storage and activity break down across your table buckets, namespaces, and accounts.

Amazon S3 Storage Lens for Tables provides an interactive dashboard in the Amazon S3 console that you can use to visualize insights and trends and drill down at the account, table bucket, namespace, or table level. You can also send a daily metrics report as CSV or Apache Parquet files to a general purpose bucket that you own, or export the metrics directly to an AWS managed S3 table bucket as Apache Iceberg tables.

Note

Amazon S3 Storage Lens for Tables reports on your table buckets. Amazon S3 Storage Lens (general purpose) reports on your general purpose buckets – the standard buckets that hold objects. The two are separate variants of S3 Storage Lens that measure different resources. To gain visibility into your general purpose buckets, see Monitoring your storage activity and usage with Amazon S3 Storage Lens.

Amazon S3 Storage Lens for Tables metrics and features

Amazon S3 Storage Lens for Tables provides an interactive default dashboard that is updated one time per day. Amazon S3 preconfigures this dashboard to summarize the insights and trends for your account. To create additional dashboards or an export, and to scope them by table bucket and AWS Region, you create an Amazon S3 Storage Lens for Tables configuration by using the Amazon S3 console, the AWS CLI, or the API. When you create or edit a configuration, you choose your scope and your metrics: the free tier is included, and the advanced tier is opt-in. The advanced tier adds storage, activity, and maintenance metrics.

Amazon S3 Storage Lens for Tables reports each metric category across organization, account, AWS Region, storage class, table bucket, namespace, and table, so that you can move from a single table up to your whole organization. When you turn on the advanced tier, Amazon S3 Storage Lens for Tables also reports finer detail, including per-partition and per-snapshot records, file size distributions, and the percentage of small files. For pricing, see Amazon S3 pricing.

Metrics categories

Amazon S3 Storage Lens for Tables collects three categories of metrics:

  • Storage – How much data your tables store. Storage metrics report meterable bytes and file counts, broken down by Iceberg file type (data files, delete files, metadata files, and manifest files), together with the maintenance settings that are in effect for each table.

  • Activity – How your tables are accessed. Activity metrics report request counts by request type, bytes uploaded and downloaded, error counts by status code, and request latency.

  • Maintenance – What managed table maintenance did. Maintenance metrics report the outcomes of compaction, orphan (unreferenced) file deletion, and snapshot expiration, including the files each operation removed and any errors it encountered.

For every field in every metric category, see Amazon S3 Storage Lens for Tables metrics glossary.

Metrics export

An export is optional – the dashboards work without one. When you turn on an export, Amazon S3 delivers the same daily metrics to you in one or both of the following forms:

  • Report files in a general purpose bucket that you own. Amazon S3 delivers daily reports as CSV or Apache Parquet files, along with a manifest that lists them, under a prefix that you choose in a bucket that you own. You keep full control of their retention, access, and encryption, and you can query them with tools such as Amazon Athena.

  • Apache Iceberg tables in S3 Tables. Amazon S3 delivers your metrics as Iceberg tables in an AWS managed table bucket. Because the schema travels with the tables, you can query them with an analytics engine that integrates with S3 Tables without first defining a schema.

For the export formats, the report layout, the Iceberg table names, and query examples, see Viewing metrics in AWS managed S3 Tables.

Metrics publishing

You can publish Amazon S3 Storage Lens for Tables usage and activity metrics to Amazon CloudWatch to create a unified view of your operational health in CloudWatch dashboards. You can also use CloudWatch features, such as alarms and triggered actions, metric math, and anomaly detection, to monitor and take action on Amazon S3 Storage Lens for Tables metrics. To turn on CloudWatch publishing, set isEnabled to true on the cloudWatchMetrics configuration item when you create or update a configuration. For more information, see Monitor Amazon S3 Storage Lens for Tables metrics in CloudWatch.

Availability

Amazon S3 Storage Lens for Tables is available in all commercial AWS Regions where S3 Tables is available. For the current list of S3 Tables Regions, see S3 Tables endpoints in the Amazon Web Services General Reference.

Like Amazon S3 Storage Lens (general purpose), a single Amazon S3 Storage Lens for Tables configuration can report on table buckets in Regions other than its home Region. The home Region is where the configuration is managed and its metrics are stored; the source Region is where the table data resides.

For more information about using Amazon S3 Storage Lens for Tables, see the following topics.