Snowpipeコスト¶
Snowpipeのサーバーレスコンピューティングモデルを使用すると、ユーザーは仮想ウェアハウスを管理することなく、あらゆるサイズのロードを開始できます。代わりに、Snowflakeはコンピューティングリソースを提供および管理し、現在のSnowpipeのロードに基づいて容量を自動的に拡大または縮小します。
重要
Snowpipe ingestion is billed based on a fixed credit amount per GB. This simplified model provides you with more predictable data-loading expenses and simplifies cost estimation. The former cost model had two components: the actual compute resources used to load data, measured per-second/per-core, and a per-1,000-files charge.
This credit-per-GB billing model applies to all Snowflake editions: Standard, Enterprise, Business Critical, and Virtual Private Snowflake (VPS).
CSV、JSON、XML などのテキストファイルの場合、非圧縮サイズに基づいて課金されます。Parquet、Avro、ORC などのバイナリファイルの場合、圧縮に関係なく、観察されたサイズに基づいて課金されます。
詳細については、 Snowflakeサービス利用表 をご参照ください。
リソースの消費と管理のオーバーヘッド¶
With the credit-per-GB pricing model, Snowpipe billing is calculated based on a fixed credit amount per GB of data that you loaded. This simplified approach means that you don't need to track or manage compute utilization, which was formerly measured with per-second/per-core granularity.
File sizes and staging frequency might impact the performance of Snowpipe. For recommended best practices, see 連続データロード(Snowpipeなど)とファイルサイズ.
Snowpipeの料金の見積もり¶
Estimating Snowpipe charges is straightforward. You can calculate your expected costs by using your anticipated data volume and the fixed credit amount per GB. Because text files --- such as CSV, JSON, XML --- are charged based on their uncompressed size, you must know the compression ratio of your text files.
You can verify these calculations against your actual usage by examining the BILLED_BYTES column in the relevant Account Usage views. The BILLED_BYTES column was introduced in the 2025_05 BCR bundle.
To understand the actual credit consumption for your specific workloads, we suggest that you experiment by performing a typical set of loads.
データロードの履歴とコストの表示¶
Account administrators (users with the ACCOUNTADMIN role) or users with a role granted the MONITOR USAGE global privilege can use Snowsight or SQL to view the credits billed to your Snowflake account within a specified date range.
データ圧縮とメンテナンスの過程で、Snowflakeクレジットが消費されることがあります。たとえば、返された結果が、0 BYTES_INSERTED と0 FILES_INSERTED でクレジットを消費したことを示す場合があります。これは、データがロードされてはいないものの、データの圧縮とメンテナンスのプロセスでクレジットが消費されていることを意味します。
アカウントのSnowpipeデータのロードに対して請求されたクレジットを表示するには、
- Snowsight:
ナビゲーションメニューで Admin » Cost management を選択します。
- SQL:
次のいずれかをクエリします。
PIPE_USAGE_HISTORY テーブル関数(Snowflake Information Schema 内)。
PIPE_USAGE_HISTORY ビュー (Account Usage 内)。
You can run the following queries against the PIPE_USAGE_HISTORY view. You can verify costs based on volume by using the
BYTES_BILLEDcolumn.クエリ:Snowpipeのコスト履歴(日別、オブジェクト別)
The following query provides a full list of pipes and the volume of credits that you consumed through the service over the last 30 days, broken out by day.
SELECT TO_DATE(start_time) AS date, pipe_name, SUM(credits_used) AS credits_used, SUM(bytes_billed) AS bytes_billed_total FROM snowflake.account_usage.pipe_usage_history WHERE start_time >= DATEADD(month,-1,CURRENT_TIMESTAMP()) GROUP BY 1,2 ORDER BY bytes_billed_total DESC;クエリ:Snowpipe履歴およびm日平均
次のクエリは、Snowpipeによって消費された1日の平均クレジットを、前年の週ごとにグループ化して表示します。このクエリは、1年間の日次平均の異常を特定するのに役立ちます。これにより、消費の急増や予期しない変化を調査することができます。
WITH credits_by_day AS ( SELECT TO_DATE(start_time) AS date, SUM(credits_used) AS credits_used, SUM(bytes_billed) AS bytes_billed_total FROM snowflake.account_usage.pipe_usage_history WHERE start_time >= DATEADD(year,-1,CURRENT_TIMESTAMP()) GROUP BY 1 ) SELECT DATE_TRUNC('week',date), AVG(credits_used) AS avg_daily_credits, AVG(bytes_billed_total) AS avg_daily_bytes_billed FROM credits_by_day GROUP BY 1 ORDER BY 1;
注釈
リソースモニター は、仮想ウェアハウスのクレジット使用状況を制御します。ただし、これらを使用して、
SNOWPIPE ウェアハウスなど、Snowflake提供のウェアハウスのクレジット使用状況を制御することはできません。