使用 Application Cost Profiler 报告 - Application Cost Profiler

AWS 应用程序成本分析器将于 2024 年 9 月 30 日停产,不再接受新客户。

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

使用 Application Cost Profiler 报告

将使用量数据与 AWS Application Cost Profiler 集成并每小时发送一次数据后,Application Cost Profiler 会自动生成报告。

根据您在配置报告时选择的选项,系统会每天或每月生成一次报告。报告将传送到您在配置报告时选择的 Amazon Simple Storage Service (Amazon S3) 存储桶。

当月第一天生成的每日报告包含上个月的数据。

Application Cost Profiler 报告中提供的数据

下表显示了使用情况报告中创建的列。

列名称 描述
PayerAccountId 组织中的管理账户 ID,或者是账户 ID(如果账户不属于 AWS Organizations)。
UsageAccountId 使用情况账户的账户 ID。
LineItemType 记录的类型。始终为 Usage
UsageStartTime 采用 UTC 的纪元时间戳(以毫秒为单位)。表示指定租户的使用周期的开始时间。
UsageEndTime 采用 UTC 的纪元时间戳(以毫秒为单位)。表示指定租户的使用周期的结束时间。
ApplicationIdentifier 发送到 Application Cost Profiler 的使用量数据中指定的 ApplicationId
TenantIdentifier 发送到 Application Cost Profiler 的使用量数据中指定的 TenantIdunattributed 中收集了使用量数据中没有记录的数据。
TenantDescription 发送到 Application Cost Profiler 的使用量数据中指定的 TenantDesc
ProductCode 正被计费的 AWS 产品(例如 AmazonEC2)。
UsageType 正被计费的使用量的类型(例如 BoxUsage:c5.large)。
操作 正被计费的操作(例如 RunInstances)。
ResourceId 正被计费的资源的资源 ID 或 Amazon 资源名称 (ARN)。
ScaleFactor 如果超额分配资源一小时,例如,报告的使用量数据等于 2 小时而不是 1 小时,则会应用比例系数使总额等于实际账单金额(本例中为 0.5)。此列报告该小时用于特定资源的比例系数。比例系数始终大于零 (0) 且小于或等于 1。
TenantAttributionPercent 归属于指定租户的使用量百分比(介于零 (0) 和 1 之间)。
UsageAmount 归属于指定租户的使用量。
CurrencyCode 费率和成本所使用的货币(例如 USD)。
费率 每单位使用量的账单费率。
TenantCost 指定租户的该资源的总成本。
区域 资源的 AWS 区域。
名称 如果您在成本和使用情况报告上或通过资源使用量数据为资源创建了资源标签,则此处会显示名称标签。有关资源标签的更多信息,请参阅《成本和使用情况报告用户指南》中的资源标签详细信息

以下是一项资源两小时的输出报告示例。

PayerAccountId,UsageAccountId,LineItemType,UsageStartTime,UsageEndTime,ApplicationIdentifier,TenantIdentifier,TenantDescription,ProductCode,UsageType,Operation,ResourceId,ScaleFactor,TenantAttributionPercent,UsageAmount,CurrencyCode,Rate,TenantCost,Region,Name 123456789012,123456789012,Usage,2021-02-01T00:00:00.000Z,2021-02-01T00:30:00.000Z,Canary,unattributed,,AmazonEC2,BoxUsage:c5.large,RunInstances,i-0123abcd456efab12,1,0.5,0.5,USD,0.085,0.0425,us-east-1,test-tag 123456789012,123456789012,Usage,2021-02-01T00:30:00.000Z,2021-02-01T01:00:00.000Z,Canary,Tenant1,exampleTenantDescription1,AmazonEC2,BoxUsage:c5.large,RunInstances,i-0123abcd456efab12,1,0.5,0.5,USD,0.085,0.0425,us-east-1,test-tag 123456789012,123456789012,Usage,2021-02-01T01:00:00.000Z,2021-02-01T02:00:00.000Z,Canary,Tenant4,exampleTenantDescription4,AmazonEC2,BoxUsage:c5.large,RunInstances,i-0123abcd456efab12,0.25,1,0.25,USD,0.085,0.02125,us-east-1,test-tag 123456789012,123456789012,Usage,2021-02-01T01:00:00.000Z,2021-02-01T02:00:00.000Z,Canary,Tenant3,exampleTenantDescription3,AmazonEC2,BoxUsage:c5.large,RunInstances,i-0123abcd456efab12,0.25,1,0.25,USD,0.085,0.02125,us-east-1,test-tag 123456789012,123456789012,Usage,2021-02-01T01:00:00.000Z,2021-02-01T02:00:00.000Z,Canary,Tenant2,exampleTenantDescription2,AmazonEC2,BoxUsage:c5.large,RunInstances,i-0123abcd456efab12,0.25,1,0.25,USD,0.085,0.02125,us-east-1,test-tag 123456789012,123456789012,Usage,2021-02-01T01:00:00.000Z,2021-02-01T02:00:00.000Z,Canary,Tenant1,exampleTenantDescription1,AmazonEC2,BoxUsage:c5.large,RunInstances,i-0123abcd456efab12,0.25,1,0.25,USD,0.085,0.02125,us-east-1,test-tag

在此示例中,第一个小时的一半时间分配给了 Tenant1。还剩半个小时为 unattributed。在第二个小时内,为四个租户都分配了整整一小时。在本例中,比例系数会将它们全部缩小 0.25,并且为它们都分配了四分之一小时。您可以在 TenantCost 列中看到最终成本。