控制成本¶
您可以使用预算来控制计算成本的 credit 使用量,包括无服务器功能产生的 credit。如果您只关心控制仓库成本,也可以使用资源监视器来监控和暂停仓库。此外,Snowflake 还提供成本控制,您可以对其进行配置,以帮助避免意外的成本。
使用预算来控制 credit 使用量¶
借助 预算,您可以设置每月支出限额,并监控账户中所有 受支持对象 和无服务器功能的 Credit 使用量。除了创建账户预算之外,您还可以创建自定义预算,以监控多组指定对象和这些对象使用的无服务器功能的 Credit 使用量。例如,您可以为组织中的每个部门创建自定义预算。如果 Credit 使用量预计将超过当月的支出限额,每个预算都会发出通知。当预计会超过支出限制时,将发送通知。您可以将预算配置为将此通知发送到电子邮件地址列表、云服务(Amazon SNS、Azure 事件网格或 Google Cloud PubSub)提供的队列或第三方系统的 Webhook(例如 Slack、Microsoft Teams 或 PagerDuty)。
有关预算的信息,请参阅 通过预算监控 Credit 使用量。
使用资源监视器控制 credit 使用量¶
A resource monitor lets you monitor credit usage by user-managed virtual warehouses. You can set a spending limit that resets on a monthly basis or on a custom schedule. A resource monitor can send an email notification when your credit usage reaches a percentage (threshold) of the spending limit. You can customize up to five notification thresholds. To help avoid unexpected credit usage, you can optionally suspend a warehouse when its credit usage reaches a threshold.
For background information about how virtual warehouses incur costs, see 了解计算成本.
有关资源监视器的信息,请参阅 使用资源监视器。
仓库的成本控制¶
有关用作虚拟仓库成本控制的一组最佳实践,请参阅 仓库的成本控制。