Skip to main content

AI-powered cost and query observability for Snowflake

Project description

❄️ FrostWatch

Snowflake cost monitoring shouldn't cost more than the savings.

FrostWatch is an open source, self-hostable, AI-powered cost and query observability tool for Snowflake. Point it at your Snowflake account and get instant answers to "where is all our money going?" — no SaaS contract, no percentage-of-spend pricing, no phone-home.

Dashboard screenshot

What it does

  • Cost breakdown by warehouse, user, role, and query tag — updated on a schedule you control
  • Anomaly detection that flags unusual spend spikes against a rolling baseline
  • Plain-English explanations of anomalies and expensive queries, powered by your own LLM (Anthropic, OpenAI, Gemini, or a local Ollama model)
  • Query recommendations — suggested rewrites, warehouse right-sizing, clustering candidates
  • Weekly digests delivered to Slack or email
  • Clean web UI — no BI tool required

Quickstart (under 5 minutes)

Option A — Docker (recommended)

# 1. Copy and edit the config
cp frostwatch.yaml.example frostwatch.yaml
# Edit frostwatch.yaml with your Snowflake credentials and LLM API key

# 2. Start
docker compose up -d

# 3. Open the UI
open http://localhost:8000

Option B — pip

pip install frostwatch

# Initialize config
frostwatch config init
# Edit ~/.frostwatch/config.yaml

# Start the server
frostwatch serve

Option C — from source

git clone https://github.com/your-org/frostwatch
cd frostwatch

# Install Python package in editable mode
pip install -e ".[dev]"

# Build the frontend
cd frontend && npm install && npm run build && cd ..

# Initialize config
frostwatch config init

# Run
frostwatch serve --reload

Configuration

All config lives in ~/.frostwatch/config.yaml (or the path you set via FROSTWATCH_DATA_DIR). Every field is also settable via environment variable with the FROSTWATCH_ prefix.

snowflake_account: "xy12345.us-east-1"
snowflake_user: "your_user"
snowflake_password: "your_password"
snowflake_role: "ACCOUNTADMIN"     # needs SELECT on ACCOUNT_USAGE

llm_provider: "anthropic"          # anthropic | openai | gemini | ollama
llm_api_key: "sk-ant-..."

slack_webhook_url: "https://hooks.slack.com/services/..."
schedule_cron: "0 8 * * 1"        # weekly Monday 8am digest
credits_per_dollar: 3.0            # adjust for your contract rate

See frostwatch.yaml.example for the full reference.

Snowflake permissions

FrostWatch only reads from SNOWFLAKE.ACCOUNT_USAGE. The minimum required grant:

GRANT IMPORTED PRIVILEGES ON DATABASE SNOWFLAKE TO ROLE your_role;

The ACCOUNTADMIN role already has this. For a least-privilege setup, create a dedicated role.

LLM providers

Provider Set llm_provider to Notes
Anthropic (Claude) anthropic Default model: claude-opus-4-7
OpenAI openai Default model: gpt-4o
Google Gemini gemini Default model: gemini-1.5-pro
Ollama (local) ollama Default model: llama3; set llm_base_url

FrostWatch is BYO-LLM. We never proxy your data through a hosted service.

CLI reference

frostwatch serve             Start the web server (default: http://localhost:8000)
frostwatch sync              Run a one-off sync without starting the server
frostwatch config init       Create ~/.frostwatch/config.yaml from the example
frostwatch config show       Print current config (secrets masked)
frostwatch version           Print version

Architecture

┌─────────────┐     HTTPS     ┌──────────────────────────────────┐
│  Snowflake  │ ◄──────────── │  frostwatch serve                │
│ ACCOUNT_    │               │                                  │
│ USAGE views │               │  FastAPI + APScheduler           │
└─────────────┘               │  ├── /api/*  (REST endpoints)    │
                              │  └── /       (React SPA)         │
┌─────────────┐               │                                  │
│  LLM API    │ ◄──────────── │  SQLite (local cache + history)  │
│ (your key)  │               └──────────────────────────────────┘
└─────────────┘

FrostWatch runs entirely inside your infrastructure. The only outbound calls are to Snowflake and your LLM provider — both using credentials you supply.

Roadmap

See ROADMAP.md.

Contributing

Contributions are welcome. Please open an issue before starting large changes.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

frostwatch-0.1.3.tar.gz (85.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

frostwatch-0.1.3-py3-none-any.whl (37.2 kB view details)

Uploaded Python 3

File details

Details for the file frostwatch-0.1.3.tar.gz.

File metadata

  • Download URL: frostwatch-0.1.3.tar.gz
  • Upload date:
  • Size: 85.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for frostwatch-0.1.3.tar.gz
Algorithm Hash digest
SHA256 b4fafc4937c1d0d3170a93a7ce4678f518c16d932401467119956cfacaca47a2
MD5 431f3396f4fc4ba00115fe2378507bb0
BLAKE2b-256 f699b509977dc67d7cefd27d82269be78aae951ebffa3bd81836483d25327784

See more details on using hashes here.

Provenance

The following attestation bundles were made for frostwatch-0.1.3.tar.gz:

Publisher: release.yml on arunrajiah/frostwatch

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file frostwatch-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: frostwatch-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 37.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for frostwatch-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ebb62a5fc6166876b48fcac52a02ee28fa220f321b76b766fc222b530259f538
MD5 b7877712fffd17b6b979dce1ea472fbf
BLAKE2b-256 1b0034dbb3e4161d27531caf7d31a9e3f4216d72c645f7385960607cb229fcf6

See more details on using hashes here.

Provenance

The following attestation bundles were made for frostwatch-0.1.3-py3-none-any.whl:

Publisher: release.yml on arunrajiah/frostwatch

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page