Amazon S3 Storage Lens for Tables export column schemas
When you send Amazon S3 Storage Lens for Tables metrics to an AWS-managed S3 table bucket, the metrics are written as Apache Iceberg system tables. This page lists the physical column schema – the field name, data type, and description – for each system table.
Amazon S3 Storage Lens for Tables writes the system tables to the AWS-managed aws-s3
table bucket in the s3tablescatalog catalog
(s3tablescatalog/aws-s3), under the namespace
s3tables_lens_. When the configuration
ID contains an uppercase letter or a dot, the namespace name is normalized (lowercased, with
each dot replaced by an underscore) and a seven-character hash suffix is appended, so the
namespace has the form
configuration-id_exps3tables_lens_.
For example, a configuration ID of configuration-id_exp_7-hex-hashtestConfigId produces the namespace
s3tables_lens_testconfigid_exp_3321378.
Amazon S3 Storage Lens for Tables organizes the metrics into the following system tables:
-
storage_metrics– Free tier storage metrics. Always present. -
table_properties– Table ownership and maintenance-configuration properties. Free tier; always present. -
activity_metrics– Request and error activity metrics. Advanced tier; present when the activity category is enabled. -
table_health_metrics– Advanced storage, partition, and maintenance-outcome metrics. Advanced tier. -
events– Managed-maintenance event records for compaction and snapshot operations. Advanced tier.
Every system table begins with the following six base columns:
version_number, configuration_id, report_time,
aws_account_id, aws_region, and storage_class. In the
storage_metrics, table_properties, activity_metrics, and
table_health_metrics tables, these base columns are followed by the discriminator
and identity columns and then the table-specific metric columns. The events table
instead uses a single event_type discriminator and has no
record_type or record_value columns. The columns that follow the base
columns are listed in each of the following sections.
In the storage_metrics, table_properties,
activity_metrics, and table_health_metrics tables, the
record_type and record_value columns are discriminator columns that
identify the aggregation level of each record, rather than metrics. The
int_access_tier column, present only in the storage_metrics table,
identifies the Intelligent-Tiering access tier. The identity columns
(table_bucket_name, table_namespace, table_name, and
partition_id) identify the table bucket, namespace, table, and partition that a
record applies to. For the record_type values and how granularity affects which
identity columns appear in a record, see Understanding Amazon S3 Storage Lens for Tables.
Topics
Storage metrics table schema
The storage_metrics system table has the following columns. These are basic
storage metrics that are collected for every configuration.
| Column name | Type | Description |
|---|---|---|
int_access_tier |
string | The Intelligent-Tiering access tier that the record applies to, or null when the source reported no tier. |
record_type |
string | The aggregation level of the record. |
record_value |
string | A disambiguator for record types that have more than one record under them. |
table_bucket_name |
string | The table bucket name. |
table_namespace |
string | The table namespace. |
table_name |
string | The table name. |
storage_bytes |
DECIMAL(38,0) | Total meterable storage bytes. |
table_file_count |
long | Total number of files. |
delete_file_count |
long | Number of delete files. |
delete_file_storage_bytes |
DECIMAL(38,0) | Total size in bytes of delete files. |
metadata_file_count |
long | Number of metadata files. |
metadata_file_storage_bytes |
DECIMAL(38,0) | Total size in bytes of metadata files. |
data_file_count |
long | Number of data files. |
data_file_storage_bytes |
DECIMAL(38,0) | Total size in bytes of data files. |
manifest_file_count |
long | Number of manifest files. |
manifest_file_storage_bytes |
DECIMAL(38,0) | Total size in bytes of manifest files. |
non_current_file_count |
long | Number of non-current files. |
non_current_file_storage_bytes |
DECIMAL(38,0) | Total size in bytes of non-current files. |
table_count |
long | Number of tables. Reported at the namespace, table bucket, and account aggregation levels. |
table_namespace_count |
long | Number of namespaces. Reported at the table bucket and account aggregation levels. |
table_bucket_count |
long | Number of table buckets. Reported at the account aggregation level. |
Table properties table schema
The table_properties system table has the following columns. These are table
ownership and maintenance-configuration properties.
| Column name | Type | Description |
|---|---|---|
record_type |
string | The aggregation level of the record. |
record_value |
string | A disambiguator for record types that have more than one record under them. |
table_owner |
string | The table owner. |
table_creation_date |
timestamptz | The date and time that the table was created. |
snapshot_expiration_min_snapshots |
long | The minimum number of snapshots to retain, from the snapshot expiration configuration. |
snapshot_expiration_hours |
long | The snapshot retention period in hours, from the snapshot expiration configuration. |
non_current_files_removal_days |
long | The number of days after which non-current files are removed. |
table_compression_algorithm |
string | The compression algorithm used by the table. |
latest_snapshot_storage_bytes |
DECIMAL(38,0) | Storage bytes in the latest snapshot. |
table_last_update |
timestamptz | The timestamp of the table's most recent commit, with its snapshot ID. |
compaction_enabled |
boolean | Whether compaction is enabled for the table. |
unreferenced_file_removal_enabled |
boolean | Whether unreferenced (orphan) file removal is enabled for the table. |
snapshot_management_enabled |
boolean | Whether snapshot management (expiry) is enabled for the table. |
trim_enabled |
boolean | Whether trim is enabled or disabled for the table. |
trim_expiry_days |
long | The trim expiry policy, in days, for the table. |
Activity metrics table schema
The activity_metrics system table has the following columns. These are request
and error activity metrics. This table is populated only when you opt in to the activity
tier.
| Column name | Type | Description |
|---|---|---|
record_type |
string | The aggregation level of the record. |
record_value |
string | A disambiguator for record types that have more than one record under them. |
table_bucket_name |
string | The table bucket name. |
table_namespace |
string | The table namespace. |
table_name |
string | The table name. |
all_request_count |
long | Total number of requests. |
get_request_count |
long | Number of GET requests. |
put_request_count |
long | Number of PUT requests. |
head_request_count |
long | Number of HEAD requests. |
post_request_count |
long | Number of POST requests. |
downloaded_bytes |
DECIMAL(38,0) | Total bytes downloaded. |
uploaded_bytes |
DECIMAL(38,0) | Total bytes uploaded. |
error_4xx_count |
long | Number of 4xx error responses. |
error_5xx_count |
long | Number of 5xx error responses. |
bad_request_error_400_count |
long | Number of HTTP 400 (Bad Request) responses. |
forbidden_error_403_count |
long | Number of HTTP 403 (Forbidden) responses. |
internal_server_error_500_count |
long | Number of HTTP 500 (Internal Server Error) responses. |
service_unavailable_error_503_count |
long | Number of HTTP 503 (Service Unavailable) responses. |
average_first_byte_latency |
long | Average time to first byte. |
average_total_request_latency |
long | Average total request latency. |
update_table_metadata_location_request_count |
long | The number of UpdateTableMetadataLocation requests for the table. |
get_table_metadata_location_request_count |
long | The number of GetTableMetadataLocation requests for the table. |
Table health metrics table schema
The table_health_metrics system table has the following columns. These are
advanced storage metrics that add live-file, partition, and maintenance-outcome detail. This
table is populated only when you opt in to the advanced storage and maintenance tiers.
| Column name | Type | Description |
|---|---|---|
record_type |
string | The aggregation level of the record. |
record_value |
string | A disambiguator for record types that have more than one record under them. |
table_bucket_name |
string | The table bucket name. |
table_namespace |
string | The table namespace. |
table_name |
string | The table name. |
partition_id |
string | The partition identifier, for partition-level records. |
live_data_and_delete_storage_bytes |
DECIMAL(38,0) | Total storage bytes for live data and delete files. |
live_data_and_delete_file_count |
long | Total count of live data and delete files. |
live_data_file_count |
long | Count of live data files. |
live_data_file_storage_bytes |
DECIMAL(38,0) | Total size in bytes of live data files. |
live_delete_file_count |
long | Count of live delete files. |
live_delete_file_storage_bytes |
DECIMAL(38,0) | Total size in bytes of live delete files. |
live_metadata_file_count |
long | Count of live metadata files. |
live_metadata_file_storage_bytes |
DECIMAL(38,0) | Total size in bytes of live metadata files. |
live_manifest_file_count |
long | Count of live manifest files. |
live_manifest_file_storage_bytes |
DECIMAL(38,0) | Total size in bytes of live manifest files. |
live_data_file_0kb_to_128kb_count |
long | Count of live data files greater than 0 KB and up to 128 KB. |
live_data_file_128kb_to_256kb_count |
long | Count of live data files greater than 128 KB and up to 256 KB. |
live_data_file_256kb_to_512kb_count |
long | Count of live data files greater than 256 KB and up to 512 KB. |
live_data_file_512kb_to_1mb_count |
long | Count of live data files greater than 512 KB and up to 1 MB. |
live_data_file_1mb_to_2mb_count |
long | Count of live data files greater than 1 MB and up to 2 MB. |
live_data_file_2mb_to_4mb_count |
long | Count of live data files greater than 2 MB and up to 4 MB. |
live_data_file_4mb_to_8mb_count |
long | Count of live data files greater than 4 MB and up to 8 MB. |
live_data_file_8mb_to_16mb_count |
long | Count of live data files greater than 8 MB and up to 16 MB. |
live_data_file_16mb_to_32mb_count |
long | Count of live data files greater than 16 MB and up to 32 MB. |
live_data_file_32mb_to_64mb_count |
long | Count of live data files greater than 32 MB and up to 64 MB. |
live_data_file_64mb_to_128mb_count |
long | Count of live data files greater than 64 MB and up to 128 MB. |
live_data_file_128mb_to_256mb_count |
long | Count of live data files greater than 128 MB and up to 256 MB. |
live_data_file_256mb_to_512mb_count |
long | Count of live data files greater than 256 MB and up to 512 MB. |
live_data_file_512mb_to_1gb_count |
long | Count of live data files greater than 512 MB and up to 1 GB. |
live_data_file_1gb_to_2gb_count |
long | Count of live data files greater than 1 GB and up to 2 GB. |
live_data_file_2gb_to_4gb_count |
long | Count of live data files greater than 2 GB and up to 4 GB. |
live_data_file_larger_than_4gb_count |
long | Count of live data files greater than 4 GB. |
partition_count |
long | Total number of partitions. |
partition_0kb_to_128kb_count |
long | Count of partitions greater than 0 KB and up to 128 KB. |
partition_128kb_to_256kb_count |
long | Count of partitions greater than 128 KB and up to 256 KB. |
partition_256kb_to_512kb_count |
long | Count of partitions greater than 256 KB and up to 512 KB. |
partition_512kb_to_1mb_count |
long | Count of partitions greater than 512 KB and up to 1 MB. |
partition_1mb_to_2mb_count |
long | Count of partitions greater than 1 MB and up to 2 MB. |
partition_2mb_to_4mb_count |
long | Count of partitions greater than 2 MB and up to 4 MB. |
partition_4mb_to_8mb_count |
long | Count of partitions greater than 4 MB and up to 8 MB. |
partition_8mb_to_16mb_count |
long | Count of partitions greater than 8 MB and up to 16 MB. |
partition_16mb_to_32mb_count |
long | Count of partitions greater than 16 MB and up to 32 MB. |
partition_32mb_to_64mb_count |
long | Count of partitions greater than 32 MB and up to 64 MB. |
partition_64mb_to_128mb_count |
long | Count of partitions greater than 64 MB and up to 128 MB. |
partition_128mb_to_256mb_count |
long | Count of partitions greater than 128 MB and up to 256 MB. |
partition_256mb_to_512mb_count |
long | Count of partitions greater than 256 MB and up to 512 MB. |
partition_512mb_to_1gb_count |
long | Count of partitions greater than 512 MB and up to 1 GB. |
partition_1gb_to_2gb_count |
long | Count of partitions greater than 1 GB and up to 2 GB. |
partition_2gb_to_4gb_count |
long | Count of partitions greater than 2 GB and up to 4 GB. |
partition_larger_than_4gb_count |
long | Count of partitions greater than 4 GB. |
partition_skew |
DECIMAL(38,4) | The partition skew ratio, computed as the largest partition size divided by the average partition size. |
partition_storage_bytes |
DECIMAL(38,0) | Total storage bytes in the partition. |
partition_data_file_count |
long | Count of data files in the partition. |
partition_delete_file_count |
long | Count of delete files in the partition. |
average_partition_data_file_size |
DECIMAL(38,4) | Average size in bytes of data files in the partition. |
partition_delete_file_storage_bytes |
DECIMAL(38,0) | Total size in bytes of delete files in the partition. |
partition_data_file_storage_bytes |
DECIMAL(38,0) | Total size in bytes of data files in the partition. |
average_partition_delete_file_size |
DECIMAL(38,4) | Average size in bytes of delete files in the partition. |
partition_data_file_0kb_to_128kb_count |
long | Count of partition data files greater than 0 KB and up to 128 KB. |
partition_data_file_128kb_to_256kb_count |
long | Count of partition data files greater than 128 KB and up to 256 KB. |
partition_data_file_256kb_to_512kb_count |
long | Count of partition data files greater than 256 KB and up to 512 KB. |
partition_data_file_512kb_to_1mb_count |
long | Count of partition data files greater than 512 KB and up to 1 MB. |
partition_data_file_1mb_to_2mb_count |
long | Count of partition data files greater than 1 MB and up to 2 MB. |
partition_data_file_2mb_to_4mb_count |
long | Count of partition data files greater than 2 MB and up to 4 MB. |
partition_data_file_4mb_to_8mb_count |
long | Count of partition data files greater than 4 MB and up to 8 MB. |
partition_data_file_8mb_to_16mb_count |
long | Count of partition data files greater than 8 MB and up to 16 MB. |
partition_data_file_16mb_to_32mb_count |
long | Count of partition data files greater than 16 MB and up to 32 MB. |
partition_data_file_32mb_to_64mb_count |
long | Count of partition data files greater than 32 MB and up to 64 MB. |
partition_data_file_64mb_to_128mb_count |
long | Count of partition data files greater than 64 MB and up to 128 MB. |
partition_data_file_128mb_to_256mb_count |
long | Count of partition data files greater than 128 MB and up to 256 MB. |
partition_data_file_256mb_to_512mb_count |
long | Count of partition data files greater than 256 MB and up to 512 MB. |
partition_data_file_512mb_to_1gb_count |
long | Count of partition data files greater than 512 MB and up to 1 GB. |
partition_data_file_1gb_to_2gb_count |
long | Count of partition data files greater than 1 GB and up to 2 GB. |
partition_data_file_2gb_to_4gb_count |
long | Count of partition data files greater than 2 GB and up to 4 GB. |
partition_data_file_larger_than_4gb_count |
long | Count of partition data files greater than 4 GB. |
snapshot_count |
long | Total number of snapshots. |
current_snapshot_storage_bytes |
DECIMAL(38,0) | The storage size, in bytes, of the table's current snapshot. |
compaction_count |
long | Total number of compaction operations. |
unreferenced_files_deleted_count |
long | Count of unreferenced (orphan) files deleted. |
latest_unreferenced_file_removal_job_error_message |
string | The error message from the most recent unreferenced (orphan) file removal job. |
snapshot_management_job_deleted_data_files_count |
long | Count of data files deleted by snapshot expiry. |
snapshot_management_job_deleted_position_delete_files_count |
long | Count of position delete files deleted by snapshot expiry. |
snapshot_management_job_deleted_equality_delete_files_count |
long | Count of equality delete files deleted by snapshot expiry. |
snapshot_management_job_deleted_manifest_file_count |
long | Count of manifest files deleted by snapshot expiry. |
snapshot_management_job_deleted_manifest_lists_count |
long | Count of manifest lists deleted by snapshot expiry. |
snapshot_management_job_deleted_statistics_files_count |
long | Count of statistics files deleted by snapshot expiry. |
latest_snapshot_management_job_error_message |
string | The error message from the most recent snapshot management (expiry) job. |
metadata_file_error_count |
long | Count of metadata file errors. |
manifest_file_error_count |
long | Count of manifest file errors. |
compaction_error_count |
long | Count of compaction errors. |
latest_compaction_job_error_status |
string | The error status of the most recent compaction job. |
unreferenced_file_removal_error_count |
long | Count of unreferenced (orphan) file removal job errors. |
latest_unreferenced_file_removal_job_error_status |
string | The error status of the most recent unreferenced (orphan) file removal job. |
snapshot_management_error_count |
long | Count of snapshot management (expiry) errors. |
latest_snapshot_management_job_error_status |
string | The error status of the most recent snapshot management (expiry) job. |
Events table schema
The events system table has the following columns. These are
managed-maintenance event records for compaction and snapshot operations. This table is
populated only when you opt in to the maintenance tier.
| Column name | Type | Description |
|---|---|---|
event_type |
string | The type of maintenance event. |
table_bucket_name |
string | The table bucket name. |
table_namespace |
string | The table namespace. |
table_name |
string | The table name. |
snapshot_id |
string | The snapshot identifier. |
compaction_timestamp |
timestamptz | The date and time of the compaction operation. |
compaction_duration |
long | The duration of the compaction operation, in milliseconds. |
compaction_target_file_size |
long | The target file size in bytes for the compaction operation. |
compaction_data_files_added |
long | Number of data files added by the compaction operation. |
compaction_data_files_removed |
long | Number of data files removed by the compaction operation. |
compaction_delete_files_removed |
long | Number of delete files removed by the compaction operation. |
compaction_objects_count |
long | The total files processed by the compaction operation. |
compaction_bytes_processed |
long | Number of bytes processed by the compaction operation. |
compaction_type |
string | The compaction strategy: auto, binpack, sort, or z-order. |
compaction_job_error_message |
string | The error message from the compaction job. |
snapshot_timestamp |
timestamptz | The date and time of the snapshot operation. |
snapshot_operation |
string | The snapshot operation. |
records_added_per_snapshot |
long | Number of records added in the snapshot. |
records_deleted_per_snapshot |
long | Number of records deleted in the snapshot. |
data_file_count_per_snapshot |
long | Number of data files in the snapshot. |
delete_file_count_per_snapshot |
long | Number of delete files in the snapshot. |
added_data_file_entries_per_snapshot |
long | Number of data file entries added in the snapshot. |
removed_data_file_entries_per_snapshot |
long | Number of data file entries removed in the snapshot. |
added_delete_file_entries_per_snapshot |
long | Number of delete file entries added in the snapshot. |
removed_delete_file_entries_per_snapshot |
long | Number of delete file entries removed in the snapshot. |
Next steps
-
Learn about Permissions for S3 Storage Lens tables
-
Review Amazon S3 Storage Lens for Tables metrics glossary for metric definitions.