本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
S3 Storage Lens 匯出至 S3 Tables 的資料表命名
概觀
當您將 S3 Storage Lens 指標匯出至 S3 Tables 時,系統會使用具有特定命名模式的 Apache Iceberg 目錄慣例來組織資料表,以確保相容性和組織性。
資料表位置結構
完整的資料表位置遵循此模式:
s3tablescatalog/aws-s3/<namespace>/<table-name>
資料表儲存貯體名稱
資料表儲存貯體: aws-s3
S3 Storage Lens 匯出使用aws-s3資料表儲存貯體,這是 AWS S3-related系統資料表的指定儲存貯體。
目錄名稱
目錄: s3tablescatalog/aws-s3
S3 Storage Lens 資料表存放在 S3 目錄中,因為 Storage Lens 提供三種 S3 資源類型的洞見:
儲存指標
儲存貯體屬性
API 用量指標
命名慣例
命名空間會組織目錄中的資料表。對於 S3 Storage Lens,命名空間衍生自 Storage Lens 組態 ID。
標準命名空間格式
對於沒有點IDs (.):
lens_<configuration-id>_exp
範例:如果您的組態 ID 為 my-lens-config,命名空間將為:
lens_my-lens-config_exp
具點字元處理的命名空間格式
Storage Lens IDs 可包含點 (.),但 S3 Tables 命名空間僅支援小寫字母、數字、連字號 (-) 和底線 ()_。當您的組態 ID 包含點時,它們會轉換為連字號,並為唯一性新增雜湊尾碼:
lens_<configuration-id-with-dots-replaced>_exp_<7-char-hash>
範例:如果您的組態 ID 為 my.lens.config,命名空間將為:
lens_my-lens-config_exp_a1b2c3d
其中 a1b2c3d是原始組態 ID 之 SHA-1 雜湊的前 7 個字元。
命名規則命名命名空間
長度:1-127 個字元
允許的字元:小寫字母 (a-z)、數字 (0-9)、連字號 (-)、底線 (_)
模式:
[a-z0-9_-]{1,127}在資料表儲存貯體中必須是唯一的
Storage Lens 組態 ID 需求
Storage Lens 組態 ID 必須遵循下列規則:
長度:1-64 個字元
允許的字元:字母 (a-z、A-Z)、數字 (0-9)、連字號 (-)、底線 (_)、點 (.)
模式:
[a-zA-Z0-9\-\_.]+
完成範例
針對 ID 為 的 Storage Lens 組態production-metrics:
資料表儲存貯體:
aws-s3目錄:
s3tablescatalog/aws-s3命名空間:
lens_production-metrics_exp完整路徑:
s3tablescatalog/aws-s3/lens_production-metrics_exp/<table-name>
對於 ID 為 的 Storage Lens 組態prod.us.east.metrics:
資料表儲存貯體:
aws-s3目錄:
s3tablescatalog/aws-s3命名空間:
lens_prod-us-east-metrics_exp_f8e9a1b(含雜湊)完整路徑:
s3tablescatalog/aws-s3/lens_prod-us-east-metrics_exp_f8e9a1b/<table-name>
資料表類型
下表顯示為 S3 Storage Lens 匯出建立的不同資料表類型:
| 儲存貯體名稱 | 命名空間 | S3 資料表名稱 | Description |
|---|---|---|---|
| s3tablescatalog/aws-s3 | lens_<conf_name>_exp【_<hash>】 | default_storage_metrics | 此資料表包含 Storage Lens 組態的儲存指標。 |
| s3tablescatalog/aws-s3 | lens_<conf_name>_exp【_<hash>】 | default_activity_metrics | 此資料表包含 Storage Lens 組態的活動指標。 |
| s3tablescatalog/aws-s3 | lens_<conf_name>_exp【_<hash>】 | expand_prefixes_storage_metrics | 此資料表包含 Storage Lens 組態中所有字首的儲存指標。 |
| s3tablescatalog/aws-s3 | lens_<conf_name>_exp【_<hash>】 | expand_prefixes_activity_metrics | 此資料表包含 Storage Lens 組態中所有字首的活動指標。 |
| s3tablescatalog/aws-s3 | lens_<conf_name>_exp【_<hash>】 | bucket_property_metrics | 此資料表包含 Storage Lens 組態中所有儲存貯體的儲存貯體屬性指標。 |
注意
匯出 S3 Storage Lens 指標至 AWS受管 S3 Tables 儲存貯體無需額外費用。您需要為資料表儲存貯體中的資料表儲存和管理支付一般費用。您可以使用 Amazon S3 主控台、Amazon S3 API AWS CLI、 或 AWS SDKs,啟用或停用匯出至 Amazon S3 資料表。 Amazon S3