成本异常简介
当每日使用量高于或低于当天的预期使用量范围时,就会出现成本异常。Snowflake 使用算法根据先前的使用量水平自动检测这些成本异常,这简化了识别成本峰值或下降的过程,因此您可以找到优化支出的方法。Snowflake 还提供了调查这些成本异常的工具,以确定根本原因。
Note
检测成本异常的算法需要消耗至少 30 天才能识别异常。如果您在过去七天内的使用量少于 10 个 credit,则 Snowflake 不会将变更识别为异常。
账户级与组织级成本异常
当单个账户的使用量超出该账户的预期使用量范围时,就会出现账户级成本异常。
当整个组织的使用量超出组织的预期使用量范围时,就会出现组织级成本异常。它基于组织中所有账户的总使用量。例如,如果一个账户的使用量激增,但另一个账户的使用量下降,则这两个账户可能会相互抵消,因此不会被标记为组织级异常。为了帮助调查组织级异常,Snowflake 提供了相关工具来确定哪些账户在特定日期的使用量出现了较大幅度的增加或减少。
To identify and investigate organization-level cost anomalies, you need to be signed in to the organization account or an ORGADMIN-enabled account.
开始使用
要通过用户界面识别和调查成本异常,请执行以下操作:
- Sign in to Snowsight as a user with the required privileges.
- In the navigation menu, select Admin » Cost management, and then select Anomalies.
成本数据的计量单位
成本数据可以以 Credit 为计量单位,也可以以货币为计量单位显示。在以下情况下,计量单位为货币:
- If you use the ACCOUNTADMIN or GLOBALORGADMIN system role to work with cost anomalies, cost data displays in a currency if you are signed in to the organization account or one that has the ORGADMIN role enabled.
- If you are not a system administrator, cost data displays in a currency if you are granted the ORGANIZATION_BILLING_VIEWER application role or APP_ORGANIZATION_BILLING_VIEWER application role. For more information about these application roles, see Access control for cost anomalies.
对成本异常视图运行查询
您可以对 ACCOUNT_USAGE 和 ORGANIZATION_USAGE 架构中的视图运行查询,以返回有关账户级成本异常的历史数据。视图中的每一行都包括特定日期的使用量,以及该使用量是否为成本异常。
- Cost anomalies for current account
Execute queries against the ANOMALIES_DAILY view in the ACCOUNT_USAGE schema to gain insights into whether cost anomalies occurred in the current account.
此视图使用 credit 作为使用量的计量单位。
- Cost anomalies for all accounts in an organization
Execute queries against the ANOMALIES_IN_CURRENCY_DAILY view in the ORGANIZATION_USAGE schema to gain insights into whether cost anomalies occurred in accounts in the organization. Note that not all accounts have access to the ORGANIZATION_USAGE schema.
使用此视图可以将货币(而不是 credit)视为计量单位。
了解详情
有关如何处理成本异常的信息,请参阅以下内容: