Start 14-day free trial

Snowflake and Datadog Cost Optimization: Slashing SaaS Data & Observability Waste

Slash Snowflake and Datadog waste by 35%. Master warehouse credit burn, custom metric cardinality, and unified multi-cloud SaaS cost visibility.

Snowflake and Datadog Cost Optimization: Slashing SaaS Data & Observability Waste
Figure 1: Architectural overview of Snowflake and Datadog Cost Optimization: Slashing SaaS Data & Observability Waste.

Modern SaaS companies often discover that their data warehouse and observability bills grow faster than their primary cloud infrastructure. While engineers focus on AWS, Azure, or GCP compute, Snowflake and Datadog can quietly scale to represent 30% to 50% of the total software budget. Managing these platforms requires understanding their unique billing mechanics and unifying their telemetry with your core cloud ledger.

Without a unified view, finance and engineering departments operate in silos. Engineering views Datadog and Snowflake as essential operational utilities, while finance sees opaque invoices with compounding overage charges. This guide outlines concrete SRE and FinOps tactics to optimize these two critical data platforms and explains how to integrate them into your broader cloud cost governance framework.

Snowflake Cost Optimization: Controlling Warehouse Burn and Overage Charges

Snowflake separates compute (warehouses) from storage. While storage is billed at raw cloud rates (typically S3, Azure Blob, or GCS pricing), compute is billed in dynamic virtual warehouse credits. A single credit corresponds to a specific virtual machine size running for one hour. The primary source of Snowflake waste is poorly configured warehouse parameters and inefficient query patterns.

1. Optimize the Auto-Suspend Window

By default, Snowflake sets the auto-suspend window for virtual warehouses to 10 minutes (600 seconds). If a developer executes a single query that finishes in three seconds, the warehouse remains active and billing for another 597 seconds.

For most analytical workloads, you should reduce this auto-suspend time to 60 seconds or even lower. Execute the following command to alter existing warehouses:

ALTER WAREHOUSE analytical_wh SET AUTO_SUSPEND = 60;

Setting AUTO_SUSPEND to 60 seconds ensures that compute resources are de-allocated almost immediately after execution, preventing idle credit burn.

2. Audit Cloud Services Overages

Snowflake includes metadata management, query compilation, and access control under "Cloud Services." Snowflake does not charge for Cloud Services unless their daily consumption exceeds 10% of your total daily warehouse compute credits.

If your SRE team writes automated scripts that constantly poll metadata tables, or if you run thousands of small, sub-second transactional queries, your Cloud Services bill will spike. You can identify this overage by querying the QUERY_HISTORY and METRIC_HISTORY views inside the SNOWFLAKE.ORGANIZATION_USAGE schema to isolate which service accounts are generating excessive non-compute queries.

3. Align Warehouse Sizing to Workloads

Snowflake warehouses scale exponentially: an X-Small warehouse costs 1 credit/hour, Small costs 2, Medium costs 4, and Large costs 8. Doubling the size of a warehouse is only cost-effective if it cuts the execution time of your queries exactly in half. If a query is network-bound or blocked by external table scans, scaling up the warehouse size merely doubles your hourly burn without accelerating performance.

Analyze query profiles for "Remote Disk I/O" or "Local Disk Spilling." If queries are spilling to local disk, scale up the warehouse size to provide more RAM. If queries are queuing, configure multi-cluster warehouses (scaling out) rather than scaling up to a larger size.

Datadog Cost Control: Slashing Custom Metric Cardinality and Log Indexing

Datadog charges based on multiple distinct vectors: hosts, APM containers, log ingestion, log indexing, and custom metrics. Of these, custom metrics and log indexing are the most common sources of unexpected billing spikes.

1. Eliminate Custom Metric Cardinality Explosions

Datadog charges a flat rate per 100 custom metrics. A custom metric is defined by its unique name combined with its tag values. If a software engineer appends a high-cardinality dynamic tag—such as user_id, uuid, transaction_id, or ip_address—to a metric, Datadog generates a new unique metric for every single value.

For example, tracking api.request.count with a tag of customer_id across 10,000 customers turns 1 custom metric into 10,000 custom metrics, instantly leading to massive monthly overage fees. SRE teams must enforce metric tagging policies. Use Datadog's Metrics Summary page to find metrics with high "Tag Cardinality" and strip dynamic identifiers from metric tags, moving them to log contexts instead.

2. Decouple Log Ingestion from Log Indexing

Datadog splits log billing into two components: Ingestion ($0.10 per GB) and Indexing (typically starting at $1.70 per million logs for 15-day retention). Many engineering teams mistakenly index 100% of their logs, including highly repetitive INFO and DEBUG statements from development and staging environments.

To optimize this, implement Exclusion Filters inside the Datadog Log Pipelines UI:

  1. Configure your application to output all logs to stdout, which are collected and sent to Datadog (Ingestion).
  2. Set up an archive to route 100% of these raw logs directly to a low-cost S3 bucket or Google Cloud Storage bucket for compliance and deep debugging.
  3. Create an Exclusion Filter in Datadog that drops 95% of INFO and DEBUG logs from the indexes. Keep only WARN, ERROR, and a small, statistically sampled percentage of transactional logs indexed for active dashboarding.

This approach preserves searchability via your S3 archive while reducing your primary Datadog indexing bill by up to 70%.

The Financial Math: DIY Billing Pipelines vs. CostGlass Integration

Many engineering organizations attempt to build in-house ELT pipelines to aggregate Snowflake, Datadog, and multi-cloud infrastructure bills. These DIY projects inevitably fail due to continuous upstream schema changes, API maintenance overhead, and the sheer cost of dedicated engineering payroll.

Cost Component / Capability In-House DIY Pipeline CostGlass Flat-Rate Platform
Upfront Engineering Cost $15,000 - $30,000 (SRE payroll) $0 (5-minute connection setup)
Monthly Maintenance 10 - 20 SRE hours/month to fix broken APIs Included in flat fee
Data Refresh Latency 24 - 48 hours (batch scripts) 6-hour automated refresh
SaaS & AI Integration Manual API stitching Native Snowflake, Datadog, OpenAI, Anthropic
Remediation Execution Internal backlog sitting in Jira Hands-on SRE execution (Scale plan)

Rather than wasting valuable internal engineering hours building fragile custom dashboards, modern organizations leverage CostGlass to instantly unify their entire software, cloud, and data warehouse estate. CostGlass provides native, read-only connectors for 13 platforms—including AWS, Azure, GCP, Snowflake, and Datadog—delivering a consolidated ledger updated every 6 hours.

How CostGlass Automates Data & Observability FinOps

CostGlass eliminates the visibility gap between infrastructure compute and external SaaS platforms. By integrating Snowflake and Datadog telemetry into the core CostGlass engine, financial and engineering leaders gain access to advanced platform capabilities:

  • Unified SaaS Spend Tracking: Track Snowflake warehouse credit burn and Datadog custom metric costs alongside your EC2, RDS, and Kubernetes cluster spend in Cost Explorer. This provides a complete picture of your actual application delivery costs.
  • Audit-Ready Unit Economics: Map your Datadog and Snowflake daily consumption metrics to core business KPIs. Easily calculate your true unit economics such as cost per active customer, cost per query, or observability cost per API request.
  • Zero-Code Virtual Tagging: If a specific Snowflake warehouse is shared across multiple departments, use Virtual Tagging to dynamically allocate those costs. You can write rules to split shared database or logging costs based on custom percentage allocations or business telemetry, without mutating resource tags in your codebase.
  • Predictable Flat Pricing with Zero Savings Tax: Competitor FinOps tools charge a percentage of your total cloud spend or take a cut of your savings. CostGlass charges a transparent, flat monthly fee: Free ($0 up to £5k/mo spend), Starter ($99/mo), Growth ($499/mo), and Scale ($1,499/mo).
  • Done-For-You Engineering Execution: On the Scale plan, you receive 8 dedicated senior DevOps and FinOps SRE hours every month. Instead of handing your busy team another list of recommendations, CostGlass engineers will write the Terraform PRs, adjust your Snowflake warehouse suspend times, and configure your Datadog log exclusion filters for you.

Frequently Asked Questions

Can we track Snowflake reader accounts and sub-organizations in CostGlass?

Yes. CostGlass integrates with the Snowflake Organization administrative role using key-pair authentication. It automatically ingests, normalizes, and groups billing telemetry across your primary organization, individual reader accounts, and regional sub-accounts, presenting them in a single, consolidated dashboard.

How does CostGlass secure our Datadog and Snowflake billing credentials?

CostGlass accesses Snowflake and Datadog billing data using restricted, read-only API keys and secure key-pair credentials. We do not store or request write-access credentials. For enterprises with strict security mandates, CostGlass can be deployed as a private, self-hosted deployment inside your own AWS account and Virtual Private Cloud (VPC), ensuring your financial telemetry never leaves your cloud boundary.

How do we prevent Snowflake warehouse scaling from conflicting with our AWS Savings Plans?

When you scale or optimize Snowflake warehouses, you alter your underlying EC2 compute footprint if you run Snowflake on your own private VPcs (or your allocation of Snowflake's managed compute). CostGlass's commitment engine handles these overlapping variables. Our platform uses mathematical models to ensure that rightsizing databases and adjust-scheduling instances do not cause you to under-utilize your existing AWS Savings Plans or Google Cloud Committed Use Discounts.

Ready to eliminate waste across your entire data and observability estate? Explore how CostGlass unifies multi-cloud and SaaS spend under transparent, flat-rate pricing. Visit our SaaS and AI Spend Documentation to connect your Snowflake and Datadog accounts in under 5 minutes, or review our Pricing Plans to find the right tier for your engineering team.

Ready to unify your multi-cloud costs?

See your AWS, Azure, GCP, and Kubernetes spend in canonical FOCUS 1.0 in under 15 minutes.

Start 14-day free trial →

More from the blog

View all →