<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Pravin Ghavare on Medium]]></title>
        <description><![CDATA[Stories by Pravin Ghavare on Medium]]></description>
        <link>https://medium.com/@praveenghavare?source=rss-e6e6c3268b78------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*tR1-WcvyTjEfsK7y</url>
            <title>Stories by Pravin Ghavare on Medium</title>
            <link>https://medium.com/@praveenghavare?source=rss-e6e6c3268b78------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 15:34:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@praveenghavare/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Killing the 5‑Minute Auto‑Stop Myth in Databricks SQL Warehouses]]></title>
            <link>https://medium.com/@praveenghavare/killing-the-5-minute-auto-stop-myth-in-databricks-sql-warehouses-a69333179635?source=rss-e6e6c3268b78------2</link>
            <guid isPermaLink="false">https://medium.com/p/a69333179635</guid>
            <dc:creator><![CDATA[Pravin Ghavare]]></dc:creator>
            <pubDate>Thu, 01 Jan 2026 11:55:14 GMT</pubDate>
            <atom:updated>2026-01-01T11:55:14.330Z</atom:updated>
            <content:encoded><![CDATA[<p>If you manage Databricks costs and you rely only on what the UI allows, you are almost certainly overspending.</p><p>One of the most common examples is SQL Warehouse auto‑stop.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-RXkxcWcnMsdr8a0yAKTVA.png" /></figure><h3>The problem nobody questions</h3><p>In the Databricks UI, SQL Warehouses enforce a <strong>minimum auto‑stop of 5 minutes</strong>. There is no explanation. No warning. No hint that this is a UI decision rather than a technical one.</p><p>Most teams see this and move on.</p><p>That is a mistake.</p><p>Five idle minutes might not matter for constantly busy warehouses. But for BI, ad‑hoc analysis or sporadic workloads, those minutes add up fast. DBUs burn silently while nobody is running queries.</p><h3>The blind spot</h3><p>Here is the part many teams miss:</p><p><strong>The 5‑minute minimum is not a Databricks platform limitation. It is a UI constraint.</strong></p><p>When you configure a SQL Warehouse using the Databricks API, you are not bound by that minimum. The platform allows lower values.</p><p>I tested this in real workloads. A <strong>1‑minute auto‑stop works</strong>.</p><p>No hacks. No unsupported behaviour. Just using the API instead of the UI.</p><h3>Why this matters in real environments</h3><p>Cost issues rarely come from one big mistake. They come from small defaults that nobody challenges.</p><p>For SQL Warehouses, those defaults hurt when:</p><ul><li>Workloads are bursty rather than continuous</li><li>BI tools trigger short query spikes</li><li>Teams use serverless or fast‑starting Pro warehouses</li></ul><p>In these cases, a 5‑minute grace period is pure waste. The warehouse is idle, but you are still paying.</p><h3>Monitoring is not a strategy</h3><p>Many teams respond to this with dashboards and alerts.</p><p>That is reactive, not engineering.</p><p>By the time a cost alert fires, the money is already gone. Real cost control comes from <strong>preventing waste by design</strong>, not observing it after the fact.</p><p>If your engineers need to remember to shut things down, the system is poorly designed.</p><h3>The control you should be using</h3><p>Instead of accepting UI limits, treat warehouse configuration as code.</p><p>Using the Databricks API, you can:</p><ul><li>Set auto‑stop below 5 minutes</li><li>Enforce consistent settings across environments</li><li>Reapply guardrails automatically</li></ul><p>I have shared a working script and screenshots showing the UI limitation and the API override here:</p><p><a href="https://github.com/bitsofpravin/databricks-toolbox.git">https://github.com/bitsofpravin/databricks-toolbox.git</a></p><h3>The bigger lesson</h3><p>This is not really about auto‑stop.</p><p>It is about how teams operate Databricks.</p><p>Defaults are designed for safety and convenience, not efficiency. Senior platform teams test defaults, validate assumptions and override what does not fit their workloads.</p><p>If you are serious about Databricks cost control, stop treating the UI as the source of truth.</p><p>Understand the platform.<br>Automate configuration.<br>Override defaults deliberately.</p><p>That is how cost optimisation actually works in practice.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a69333179635" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building Smart Azure Cost Analytics with Databricks, Power BI, and Genie]]></title>
            <link>https://medium.com/@praveenghavare/building-smart-azure-cost-analytics-with-databricks-power-bi-and-genie-6f7a27d163d4?source=rss-e6e6c3268b78------2</link>
            <guid isPermaLink="false">https://medium.com/p/6f7a27d163d4</guid>
            <dc:creator><![CDATA[Pravin Ghavare]]></dc:creator>
            <pubDate>Thu, 22 May 2025 08:56:14 GMT</pubDate>
            <atom:updated>2025-05-22T08:56:14.140Z</atom:updated>
            <content:encoded><![CDATA[<p>Managing cloud costs effectively is critical for organisations using Azure. This blog introduces a modern, scalable approach to Azure cost analysis that uses <strong>Databricks</strong>, <strong>Power BI</strong>, and <strong>Databricks Genie</strong> to transform raw billing exports into actionable insights.</p><p>This solution enables:</p><ul><li>Executive dashboards in Power BI</li><li>Conversational, real-time insights with Databricks Genie</li><li>A single, curated dataset ensuring consistency across tools</li></ul><p>As organisations adopt <strong>Lakehouse architectures</strong>, cost visibility must shift from centralised finance teams to <strong>domain-specific ownership</strong> — whether engineering, product, or operations. This approach empowers each domain with <strong>self-service cost intelligence</strong> while maintaining governance and data trust.</p><h3>Why Smart Azure Cost Analysis Matters</h3><p>While tagging Azure resources is a key governance strategy, transforming these tags into <strong>actionable, domain-ready insights at scale</strong> remains a challenge for many enterprises.</p><p>With the combined power of <strong>Azure Databricks</strong>, <strong>Power BI</strong>, and <strong>Databricks Genie</strong>, it’s possible to turn unstructured billing data into a <strong>user-friendly cost intelligence ecosystem</strong>:</p><ul><li><strong>Executive-ready dashboards</strong> in Power BI for strategic cost visibility</li><li><strong>Conversational analytics</strong> via Genie for real-time decision-making</li><li>A <strong>unified semantic layer</strong> powering multiple tools from a single dataset</li></ul><p>This is more than just reporting — it’s about enabling finance, engineering, and leadership teams to <strong>proactively manage and optimise cloud spend</strong>.</p><h3>Step-by-Step Implementation: Azure Cost Analysis Architecture</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*u-D3knXNfibyvDUeyTkH8w.png" /></figure><h3>Step 1: Automate Azure Cost Data Export</h3><ol><li>In the Azure Portal, go to <strong>Subscriptions</strong> → select your subscription → <strong>Cost Management</strong> → <strong>Cost Analysis</strong> → <strong>Configure Subscription</strong> → <strong>Exports</strong></li><li>Click <strong>+ Add</strong> to define a new export:</li></ol><ul><li><strong>Scope</strong>: Subscription or Management Group</li><li><strong>Export Type</strong>: Daily, weekly, or monthly</li><li><strong>Format</strong>: CSV or Parquet</li><li><strong>Destination</strong>: Azure Storage Account for export delivery</li></ul><h3>Step 2: Ingest Cost Data into Azure Data Lake</h3><p>Once exports are landing in your storage account:</p><ul><li>Organise them under a <strong>“Raw” zone</strong> (e.g., /raw/azure_cost_exports/)</li><li>Use <strong>overwrite mode</strong> if filenames repeat</li><li>Optionally, set <strong>lifecycle policies</strong> for file retention or archival</li></ul><h3>Step 3: Transform and Enrich with Azure Databricks</h3><p>Use a Databricks notebook or job to process and enrich cost data.</p><h4>Key transformation steps:</h4><ul><li>Read raw CSV/Parquet into a <strong>Spark DataFrame</strong></li><li><strong>Parse the tags column</strong> into key-value pairs (e.g., Department, Environment)</li><li>Normalize fields: resourceId, meterCategory, usageDate</li><li>Derive cost allocation metrics:</li><li>Cost per project/department</li><li>Unused resources</li><li>Aggregated resource types</li></ul><h4>Optional enhancements:</h4><ul><li><strong>Data quality checks</strong> for null/malformed tag entries</li><li>Store transformed data in a <strong>“Curated” Delta Table</strong> (e.g., cost_insights_curated)</li><li>Schedule the notebook as a <strong>daily job</strong> after export availability</li></ul><h3>Step 4: Connect Power BI to Curated Dataset</h3><p>Use Power BI to build impactful cost analysis dashboards.</p><h4>In Power BI Desktop:</h4><ul><li>Connect via the <strong>Azure Databricks connector</strong></li><li>Build visuals for:</li><li>Cost trends over time</li><li>Cost by department or project</li><li>Forecast vs actual spend</li><li>Tagged vs untagged resources</li></ul><h4>In Power BI Service:</h4><ul><li>Set up <strong>scheduled refreshes</strong> aligned with your export schedule</li><li>Create <strong>role-based dashboards</strong> for different stakeholders (finance, engineering, leadership)</li></ul><h3>Step 5: Enable Databricks Genie for Conversational Cost Insights</h3><p>To make insights accessible through natural language:</p><ul><li><strong>Register your curated Delta Table</strong> with Databricks Genie</li><li>Define <strong>semantic metadata</strong> for tags and metrics (e.g., tag_department, cost_in_usd)</li><li>Users can ask questions like:</li><li>“Show me the top 5 cost centres by growth”</li><li>“What’s the average cost of untagged VMs last month?”</li></ul><p>This elevates cost analysis from static reports to <strong>interactive, AI-powered exploration</strong>.</p><h3>Alternative: Native Dashboards in Databricks</h3><p>If your team prefers to streamline the stack, you can skip external tools and build <strong>native dashboards in Databricks</strong>. With built-in visualisations, role-based access, and Spark-backed performance, Databricks dashboards provide a unified platform for both engineering and analytics needs.</p><h3>Conclusion</h3><p>Azure cost data doesn’t have to be complex. With a modern Lakehouse-based approach — using <strong>Databricks for transformation</strong>, <strong>Power BI and Genie for insights</strong>, and a <strong>curated semantic layer</strong> underneath — you can achieve clarity, speed, and impact.</p><p>This architecture empowers every team, from finance to engineering, to take control of cloud costs confidently, enabling real-time, self-service intelligence at enterprise scale.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6f7a27d163d4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>