<?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 Manav Mehta  on Medium]]></title>
        <description><![CDATA[Stories by Manav Mehta  on Medium]]></description>
        <link>https://medium.com/@manavmehta2031?source=rss-d2fb933742d9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*-DidzX4YeHZAA8kh</url>
            <title>Stories by Manav Mehta  on Medium</title>
            <link>https://medium.com/@manavmehta2031?source=rss-d2fb933742d9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 20:53:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@manavmehta2031/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[Building a Centralized Alerting Framework for Data Quality Monitoring and Incident Management]]></title>
            <link>https://medium.com/helpshift-engineering/building-a-centralized-alerting-framework-for-data-quality-monitoring-and-incident-management-2f90d93a65b5?source=rss-d2fb933742d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f90d93a65b5</guid>
            <category><![CDATA[snowflake]]></category>
            <category><![CDATA[incident-management]]></category>
            <category><![CDATA[data-quality]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[observability]]></category>
            <dc:creator><![CDATA[Manav Mehta ]]></dc:creator>
            <pubDate>Tue, 16 Jun 2026 15:42:39 GMT</pubDate>
            <atom:updated>2026-06-18T18:17:32.109Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*T5vJVU4QH495o7XJ" /></figure><h3>Before We Knew Better</h3><p>As our data platform grew, so did the number of pipelines, scheduled tasks, and data quality checks running every day.</p><p>While Snowflake provided a reliable platform for storing and processing data, operational monitoring was fragmented across multiple systems. Data quality failures were often discovered only after downstream reports showed inconsistencies. Pipeline issues sometimes required engineers to manually inspect logs, query tables, and trace execution paths before identifying the root cause.</p><p>The challenge wasn’t detecting failures — we already had mechanisms to identify them.</p><p>The real challenge was ensuring the right people were notified quickly, with enough context to take action.</p><p>Questions during on-call incidents were often similar:</p><ul><li>Did the pipeline fail or was data simply delayed?</li><li>Which validation check triggered the alert?</li><li>Who should respond to the issue?</li><li>How can we ensure critical failures don’t get missed overnight?</li></ul><p>As the number of pipelines increased, manually monitoring these failures became increasingly difficult.</p><p>We needed a centralized alerting framework.</p><h3>What We Actually Needed</h3><p>Our goal wasn’t simply to send more notifications.</p><p>We wanted a system that could:</p><ul><li>Detect data quality issues automatically</li><li>Notify engineers through channels they already use</li><li>Escalate critical incidents to on-call responders</li><li>Provide actionable context instead of generic failure messages</li><li>Scale across multiple pipelines and monitoring use cases</li></ul><p>Most importantly, we wanted to keep the solution as close to the data platform as possible.</p><p>Since our monitoring logic already lived in Snowflake, it made sense for the alerting framework to live there as well.</p><h3>The Architecture We Chose</h3><p>To address these challenges, we designed a centralized notification and incident management framework using Snowflake’s native Alerting capabilities, combined with Email, Slack, and Splunk On-Call integrations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PDKY26hHShA9JE3ARsV-EA.png" /></figure><p>Rather than introducing another monitoring platform, we chose to build the framework directly within Snowflake, where our data quality validations, task executions, and operational metadata already resided. This allowed us to keep monitoring logic close to the source of truth while minimizing operational complexity.</p><p>At a high level, the framework follows three core responsibilities:</p><h4>Detection</h4><p>Snowflake Alerts continuously evaluate operational and data quality conditions such as:</p><ul><li>Missing data partitions</li><li>Data freshness violations</li><li>Duplicate records</li><li>Invalid or null values</li><li>Snowflake task failures</li></ul><p>Once a failure is detected, the alert generates contextual information describing the issue and its impact.</p><h4>Notification</h4><p>The next step is delivering the alert to the appropriate audience.</p><p>To support multiple communication channels, we leveraged Snowflake’s native Notification Integration framework.</p><p>For Slack notifications, we created a dedicated webhook-based integration that routes alerts directly into our engineering channels.</p><pre>CREATE OR REPLACE NOTIFICATION INTEGRATION DATAPLATFORM_SLACK_NOTIFICATION<br>TYPE = WEBHOOK<br>ENABLED = TRUE<br>...</pre><p>This integration allows Snowflake Alerts and Stored Procedures to publish messages directly to Slack without requiring intermediary services.</p><p>For email notifications, Snowflake’s native Email Notification Integration provides a straightforward mechanism for notifying stakeholders and distribution groups.</p><h4>Escalation</h4><p>While Slack and Email provide visibility, critical incidents require escalation management.</p><p>For this purpose, we integrated Splunk On-Call directly with Snowflake.</p><p>Unlike Email and Slack integrations, Splunk On-Call requires outbound API communication. To enable this securely, we implemented three Snowflake security components:</p><h4>1. Network Rules</h4><p>Network Rules define which external endpoints Snowflake is allowed to communicate with.</p><pre>CREATE NETWORK RULE SPLUNK_ONCALL_NETWORK_RULE<br>MODE = EGRESS<br>TYPE = HOST_PORT<br>VALUE_LIST = (&#39;alert.victorops.com&#39;);</pre><p>This ensures outbound traffic is restricted to approved destinations.</p><h4>2. External Access Integrations</h4><p>External Access Integrations provide a controlled mechanism for Snowflake Stored Procedures to communicate with external services.</p><pre>CREATE EXTERNAL ACCESS INTEGRATION<br>SPLUNK_ONCALL_ACCESS_INTEGRATION<br>...</pre><p>This layer acts as a security boundary between Snowflake and external APIs.</p><h4>3. Snowflake Secrets</h4><p>Sensitive credentials such as API keys are stored securely using Snowflake Secrets rather than being embedded directly within code.</p><p>This allows credentials to be rotated independently while maintaining strong governance controls.</p><h4>Automated Incident Creation</h4><p>Once the secure connectivity layer was established, we implemented a Python Stored Procedure responsible for creating incidents in Splunk On-Call.</p><p>The procedure performs the following steps:</p><ol><li>Retrieves API credentials securely from Snowflake Secrets.</li><li>Builds the incident payload.</li><li>Invokes the Splunk On-Call REST API.</li><li>Creates an incident automatically.</li><li>Triggers the appropriate escalation policy.</li></ol><p>Conceptually, the workflow looks like:</p><pre>Snowflake Alert<br>       │<br>       ▼<br>Python Stored Procedure<br>       │<br>       ▼<br>Snowflake Secrets<br>Network Rules<br>External Access Integration<br>       │<br>       ▼<br>Splunk On-Call REST API<br>       │<br>       ▼<br>Incident Created</pre><p>The procedure sends information such as:</p><ul><li>Message type</li><li>Entity identifier</li><li>Alert description</li><li>Dataset information</li><li>Monitoring source</li></ul><p>allowing incidents to contain actionable operational context from the moment they are created.</p><h4>Putting Everything Together</h4><p>The final architecture provides a clean separation of concerns between detection, notification, and escalation.</p><pre>Snowflake Alert / Task Failure<br>            │<br>            ▼<br> Notification Framework<br>   ├── Email<br>   ├── Slack<br>   └── Splunk On-Call<br>            │<br>            ▼<br> Incident Escalation Workflow</pre><p>This modular design allows each layer to evolve independently.</p><p>For example:</p><ul><li>New Data Quality validations can be added without modifying notification channels.</li><li>Additional messaging platforms can be integrated without changing alert logic.</li><li>Escalation policies can be updated without impacting Snowflake Alerts.</li></ul><p>Most importantly, the framework transforms operational failures into actionable incidents automatically, ensuring that engineers spend less time discovering problems and more time resolving them.</p><h3>Detecting Data Quality Issues</h3><p>The first step was defining what constitutes a failure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ShSNAviAl3_mbUNg" /><figcaption>Photo by <a href="https://unsplash.com/@brett_jordan?utm_source=medium&amp;utm_medium=referral">Brett Jordan</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>For one of our event ingestion pipelines, we identified three high-value validations:</p><h4>Missing Hour Detection</h4><p>The pipeline is expected to process data for every hour of the day.</p><p>Missing hours usually indicate:</p><ul><li>Delayed ingestion</li><li>Upstream failures</li><li>Partial processing</li></ul><h4>Duplicate Record Detection</h4><p>Every event should have a unique identifier.</p><p>Duplicate records typically indicate:</p><ul><li>Replay events</li><li>Reprocessing issues</li><li>Upstream inconsistencies</li></ul><h4>Mandatory Field Validation</h4><p>Several fields are required for downstream processing.</p><p>Missing values can lead to:</p><ul><li>Broken reporting</li><li>Incomplete analytics</li><li>Incorrect business metrics</li></ul><p>Instead of creating separate monitoring jobs for each validation, we consolidated them into a single Snowflake Alert.</p><h3>Why Detailed Alerts Matter</h3><p>One lesson we learned quickly was that generic notifications are rarely useful.</p><p>A message saying:</p><p><em>“Data Quality Check Failed”</em></p><p>doesn’t help an engineer understand what actually happened.</p><p>Instead, our alerts generate contextual information that includes:</p><ul><li>Which validation failed</li><li>Missing hours</li><li>Duplicate record counts</li><li>Invalid row counts</li><li>Affected dataset</li></ul><p>This significantly reduces investigation time during incidents.</p><h3>Delivering Notifications</h3><p>Once an issue is detected, the next challenge is getting that information to the right audience.</p><p>Different stakeholders consume alerts differently.</p><h4>Email for Visibility</h4><p>Email serves as the broadest notification channel.</p><p>It provides:</p><ul><li>Auditability</li><li>Historical records</li><li>Distribution lists</li><li>Organizational visibility</li></ul><p>For production incidents, email ensures alerts remain discoverable even after real-time conversations have ended.</p><h4>Slack for Collaboration</h4><p>While email provides visibility, Slack provides speed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fi3HzaHzsoiXjuI2bo6sGg.png" /></figure><p>Engineers can:</p><ul><li>Discuss incidents immediately</li><li>Share findings</li><li>Coordinate fixes</li><li>Acknowledge issues quickly</li></ul><p>This dramatically improves response times compared to email-only workflows.</p><h4>Introducing Splunk On-Call</h4><p>Email and Slack are excellent communication tools, but they don’t solve escalation management.</p><p>For critical production issues we needed:</p><ul><li>On-call routing</li><li>Escalation policies</li><li>Pager notifications</li><li>Incident tracking</li></ul><p>This led us to integrate Splunk On-Call into the workflow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4Xt6JSyDzwDtJQvxxMkFLg.png" /></figure><p>Whenever a critical alert is triggered:</p><ol><li>A Splunk On-Call incident is created automatically.</li><li>Escalation policies determine who gets paged.</li></ol><p>This ensures that critical failures are never dependent on someone noticing a Slack message.</p><h3>Securely Connecting Snowflake to External Systems</h3><p>One of the most interesting aspects of this implementation was enabling Snowflake to communicate with external services securely.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6xWLIHxaRRfdjUtzDRgicg.png" /></figure><p>Rather than exposing credentials directly inside procedures, we leveraged:</p><ul><li>Snowflake Secrets</li><li>Network Rules</li><li>External Access Integrations</li></ul><p>This allowed us to securely invoke external APIs while maintaining governance and security standards.</p><p>The result was a clean architecture where alert logic remained inside Snowflake while incident management systems remained external and independently managed.</p><h3>End-to-End Alert Flow</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5OUTPBGLmsKlZr2-2wIG4w.png" /></figure><p>This architecture ensures every critical failure follows a consistent response path.</p><h3>Benefits We Observed</h3><h4>Centralized Monitoring</h4><p>Monitoring logic remains close to the data.</p><h4>Faster Detection</h4><p>Failures are identified immediately after validation.</p><h4>Reduced MTTR</h4><p>Detailed notifications help engineers identify root causes quickly.</p><h4>Better Operational Visibility</h4><p>Teams gain a single source of truth for pipeline health.</p><h4>Improved Reliability</h4><p>Critical incidents automatically trigger escalation workflows.</p><h3>Recommended Use Cases</h3><p>This framework can be extended beyond data quality monitoring.</p><p>Examples include:</p><ul><li>ETL / ELT pipeline failures</li><li>Snowflake Task monitoring</li><li>Data freshness checks</li><li>SLA monitoring</li><li>Cost anomaly detection</li><li>Infrastructure health monitoring</li><li>Business KPI threshold alerts</li></ul><h3>Key Takeaways</h3><p>Building an alerting system is not just about detecting failures.</p><p>It’s about delivering the right information to the right people at the right time.</p><p>A few principles stood out during implementation:</p><ul><li>Contextual alerts are far more valuable than generic notifications.</li><li>Detection and notification should remain loosely coupled.</li><li>Multiple communication channels improve operational resilience.</li><li>Secure integrations are essential when communicating with external systems.</li><li>Incident escalation should be automated whenever possible.</li></ul><h3>Conclusion</h3><p>As data platforms continue to grow in scale and complexity, observability becomes just as important as data processing itself.</p><p>By combining Snowflake Alerts, Notification Integrations, Slack, Email, and Splunk On-Call, we built a centralized alerting framework that improves visibility, accelerates incident response, and reduces operational overhead.</p><p>More importantly, it enables engineers to spend less time searching for failures and more time solving them.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f90d93a65b5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/helpshift-engineering/building-a-centralized-alerting-framework-for-data-quality-monitoring-and-incident-management-2f90d93a65b5">Building a Centralized Alerting Framework for Data Quality Monitoring and Incident Management</a> was originally published in <a href="https://medium.com/helpshift-engineering">helpshift-engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>