Why did my Snowflake bill spike? How to find the cause in an hour
A five-step triage using Snowflake's own ACCOUNT_USAGE views, from daily credits down to the single query
Your Snowflake bill spiked because compute credits rose on one or more warehouses, and the metering views in the SNOWFLAKE.ACCOUNT_USAGE schema show which one, on which day, and which queries ran. Snowflake documents these views, including WAREHOUSE_METERING_HISTORY, and a methodical pass through them usually finds the cause in under an hour.
Key Takeaways
- •Start at the account level (daily credits), then narrow to warehouse, then to user and query. Going straight to query text wastes time.
- •Most spikes come from five causes: a warehouse resize, a new or runaway query, idle warehouses that never suspend, serverless features, or cloud services overhead.
- •A spike that begins on a specific date almost always lines up with a change: a deploy, a new dashboard, a backfill, or an ALTER WAREHOUSE.
- •Resource monitors stop the next spike but do not explain the last one. You need the metering and query history to find the cause.
- •Snowflake's ACCOUNT_USAGE views lag real time, so a spike from the last few hours may not appear yet.
Why did my Snowflake bill spike? Start with daily credits
Before you open any query text, confirm what kind of spike it is. Snowflake's cost documentation splits spend into compute, storage and data transfer. Compute is where nearly every sudden jump lives, but storage growth from a runaway table or long Time Travel retention can also surprise you. Check the breakdown on your invoice or in the usage dashboard first, so you do not spend an hour tuning queries when the money went to storage.
If compute is the culprit, pull daily credits. In a worksheet, select usage_date and the sum of credits_billed from SNOWFLAKE.ACCOUNT_USAGE.METERING_DAILY_HISTORY, grouped by usage_date and ordered newest first (see the METERING_DAILY_HISTORY reference). Look at the last 60 days. You are looking for one of two shapes: a step change (credits jumped and stayed high) or a spike (one or two bad days). A step change points to a configuration or workload change. A spike points to a single bad job.
Step 1: Find the date the spike started
Write down the first date credits departed from the baseline. Then ask what changed on or just before that date. In our experience the answer is usually in one of four places: a deployment of a new dbt model or pipeline, a new BI dashboard with auto-refresh, a one-off backfill, or someone running ALTER WAREHOUSE to resize it. Your orchestrator run history, your git log and the Snowflake query history for ALTER statements will each narrow this quickly.
Questions worth asking your team at this point match the ones we hear most: "How much are we spending on Snowflake this month?" and "Why is the nightly pipeline 3x slower this week?" A slow pipeline and a cost spike often share a root cause, since a query that scans more data runs longer and bills more.
Step 2: Break credits down by warehouse
Query SNOWFLAKE.ACCOUNT_USAGE.WAREHOUSE_METERING_HISTORY, grouping by warehouse_name and the day of start_time, and sum credits_used. Compare the spike window against the previous two weeks. Usually one warehouse accounts for most of the delta. The view also separates credits_used_compute from credits_used_cloud_services, which matters for Step 5.
Two patterns to recognize. If one warehouse's credits doubled overnight with similar query counts, suspect a size change: each size step up roughly doubles the credit rate per hour, per Snowflake's documentation. If credits rose with a matching rise in query counts, suspect new workload. And if credits rose while query counts stayed flat or fell, suspect idle time (Step 4).
Step 3: Find the expensive queries and users
Now go to SNOWFLAKE.ACCOUNT_USAGE.QUERY_HISTORY, filtered to the spike warehouse and date range. Order by total_elapsed_time or bytes_scanned, and group by user_name, role_name and a query hash or normalized query_text. The QUERY_HISTORY reference lists the columns that matter here: partitions_scanned against partitions_total (poor pruning), bytes_spilled_to_local_storage and bytes_spilled_to_remote_storage (undersized warehouse for the query), and queued_overload_time (too much concurrency).
What you are hunting for is a pattern, not a single query. A dashboard that issues the same full-table scan every five minutes from forty viewers looks cheap per query and expensive in aggregate. A cross join introduced by a model change looks like one huge query. A service account looping on retries looks like thousands of small ones. Group before you sort.
Step 4: Check idle time and auto-suspend
A warehouse bills while it is running, even if nothing is executing. Compare the hours a warehouse was active in WAREHOUSE_METERING_HISTORY with the hours in which QUERY_HISTORY shows queries. A large gap means the warehouse stayed up with little work. Common causes are an AUTO_SUSPEND value set to a long interval or disabled, a multi-cluster warehouse with a high minimum cluster count, or a client that sends a trivial keep-alive query every few minutes and resets the suspend timer.
Run SHOW WAREHOUSES and read auto_suspend, min_cluster_count, max_cluster_count and size for every warehouse. Compare them with what your team believes they are. Drift between intended and actual configuration is one of the most common findings in this step.
Step 5: Rule out serverless features and cloud services
If warehouse credits do not explain the spike, check the rest of METERING_DAILY_HISTORY and the METERING_HISTORY view by service_type. Serverless features such as automatic clustering, materialized view maintenance, search optimization, Snowpipe and serverless tasks bill separately from your warehouses. A new clustering key on a large, frequently updated table, or a materialized view over a high-churn source, can consume credits continuously and never show up in a per-warehouse view.
Cloud services credits are the other blind spot. Snowflake's cost documentation explains that cloud services usage is billed only above a threshold relative to compute. A flood of tiny metadata operations, such as thousands of SHOW or DESCRIBE calls from a catalog crawler or BI tool, can push you over it. Group QUERY_HISTORY by query_type and sum cloud_services_credits_used to see it.
What you can fix today
| Finding | Typical fix | Where to verify |
|---|---|---|
| Warehouse resized upward | Resize back, or test the smaller size against the slow query | WAREHOUSE_METERING_HISTORY by day |
| One query or model dominates | Fix pruning, add filters, or schedule it less often | QUERY_HISTORY, partitions_scanned vs partitions_total |
| Dashboard refresh storm | Lengthen refresh interval, use result caching or an extract | QUERY_HISTORY grouped by user and query text |
| Idle warehouse not suspending | Lower AUTO_SUSPEND, remove keep-alive queries | SHOW WAREHOUSES, then metering vs query hours |
| Serverless feature churn | Drop the clustering key or materialized view, or reduce churn | METERING_HISTORY by service_type |
| Cloud services overage | Reduce metadata call volume from tools | QUERY_HISTORY, cloud_services_credits_used |
Once you have the cause, put a guardrail in place. Snowflake resource monitors can notify or suspend warehouses at credit thresholds. They are a backstop, not a diagnosis, and a hard suspend on a production warehouse has its own cost. We recommend notify-only thresholds on production and hard stops only on development and sandbox warehouses.
Where this manual hunt breaks down
The hour of triage above is repeatable, which is the problem: you do it after the bill arrives, and you do it again next month. The account usage views also lag real time, so you find out about a spike a day or more after it starts. Each step needs someone who knows the warehouse layout, the orchestrator schedule and the BI tools, and that person is usually also the one running the pipelines.
This is the job our Cost Agent does. It watches warehouse credits, idle time, sizing and query patterns continuously, flags waste such as idle warehouses and oversized compute, and recommends savings for Snowflake, BigQuery and Databricks. Because every Data Workers agent is an MCP server, you can ask it from Claude Code or Cursor in the terminal: "How much are we spending on Snowflake this month?" or "What's causing the warehouse queue to spike?" The OSS edition is read-only by default, so it can investigate without touching your warehouse settings.
Cost spikes rarely have one cause that sits in one tool. A schema change upstream can break a model that then retries all night. We covered how our agents share context across pipelines, quality and governance in a separate post, and our Connectors Agent handles the warehouse access that lets the Cost Agent see usage across Snowflake and your other platforms. When a spike comes from a pipeline that regressed, the Pipeline Agent can be pointed at the same incident so the fix and the cost explanation come from the same context.
Frequently Asked Questions
How long does it take to find why a Snowflake bill spiked? With the five steps above and ACCOUNT_USAGE access, most spikes can be narrowed to a warehouse and a date within the first 15 to 20 minutes, and to a query pattern or configuration change within an hour. Spikes caused by serverless features or cloud services take longer because they are less visible. This is our estimate from doing the work, not a benchmark.
Why is my Snowflake bill higher when query volume did not change? Usually idle time or a size change. A warehouse that stays running because of a long auto-suspend interval or a keep-alive query bills for time with no work, and a resize changes the credit rate per hour even at the same query count. Compare metering hours with query hours to tell which one it is.
Can I see a Snowflake cost spike in real time? Not through ACCOUNT_USAGE, which has documented latency of up to several hours depending on the view. The INFORMATION_SCHEMA table functions are closer to real time for recent history, and resource monitors react to usage as it accrues. For anything faster, you need continuous monitoring that polls these sources and alerts on deviation from baseline.
Do resource monitors prevent bill spikes? They limit them. A resource monitor can notify at a threshold or suspend warehouses when a credit quota is reached, which caps the damage. It does not tell you why usage rose, and a hard suspend can stop legitimate production work, so set thresholds with care.
Can an AI coding agent investigate a Snowflake cost spike? Yes, if it has read access to the usage views and the right tools. An MCP-native agent in Claude Code can run the metering and query history analysis, group the results and propose a fix, leaving the decision to you. Keep it read-only until you trust its recommendations.