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.2.tar.gz (84.9 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.2-py3-none-any.whl (37.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: frostwatch-0.1.2.tar.gz
  • Upload date:
  • Size: 84.9 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.2.tar.gz
Algorithm Hash digest
SHA256 83d04504abcf340435ffa0e2a09cbc8c07dbbd09b2de1f94827a5332abbdb748
MD5 3cce5ad05525d254e994eed89b196d05
BLAKE2b-256 8548c9b192a5871984bfea0e20b12b7832106df5ee69a146cbf1121f99564366

See more details on using hashes here.

Provenance

The following attestation bundles were made for frostwatch-0.1.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: frostwatch-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4d97ca57f1c5994225004bdbcfb256dac19bb34b1bec8e20d05a6d07acc4de5c
MD5 e2ff042145d5578bd91f96c7d59a1efd
BLAKE2b-256 7a18d0575b91fdbd15b46ed12ca61f635d8948d0c49ce066980b028a98513bb3

See more details on using hashes here.

Provenance

The following attestation bundles were made for frostwatch-0.1.2-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