Using Airflow Operational Data to Optimize Cloud Services
summary
Astronomer packages an Airflow plugin plus DAGs called Snow Patrol plugin that automatically adds Snowflake query tags at the hook/session level (via an Airflow PR) and aggregates Snowflake USAGE/QUERY/WAREHOUSE tables into reporting. It runs daily anomaly detection using IsolationForest after time‑series decomposition, stores models with Weights & Biases, and alerts via Slack. Deployed as two Git repos (per‑deployment plugin, central DAGs) it identifies costly DAGs and achieves an almost 25% reduction in Snowflake spend in production.
AI-written summary · about
chapters (10)
- 0:00Introduction to cost management
- 1:07Snowflake cost challenges
- 3:14Manual vs automated cost tracking
- 4:38Airflow query tagging solution
- 7:11Detecting cost spikes
- 8:57Snow Patrol project overview
- 10:44Plugin for automatic tagging
- 12:10Dashboards and reporting
- 15:14Outcomes and future plans
- 16:17Q&A and resources
