<?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 Jaemar Miller on Medium]]></title>
        <description><![CDATA[Stories by Jaemar Miller on Medium]]></description>
        <link>https://medium.com/@miller2j?source=rss-87436c606ad4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*kHx5ecWp07b9Xyli</url>
            <title>Stories by Jaemar Miller on Medium</title>
            <link>https://medium.com/@miller2j?source=rss-87436c606ad4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 01:34:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@miller2j/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[Data Pipeline Observability in Cloud Computing]]></title>
            <link>https://medium.com/slalom-build/data-pipeline-observability-in-cloud-computing-90346626499f?source=rss-87436c606ad4------2</link>
            <guid isPermaLink="false">https://medium.com/p/90346626499f</guid>
            <category><![CDATA[observability]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[cloud-data]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[cloud]]></category>
            <dc:creator><![CDATA[Jaemar Miller]]></dc:creator>
            <pubDate>Thu, 01 Dec 2022 18:01:34 GMT</pubDate>
            <atom:updated>2022-12-01T18:01:34.996Z</atom:updated>
            <content:encoded><![CDATA[<h4>Building observability dashboards for Extract-Transform-Load (ETL) pipelines</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J7vwnZxBRr_8myuUMNqqeQ.png" /></figure><p>Currently, most organizations are either leveraging cloud technology or are in the process of migrating to the cloud. This unlocks potential for several things: scalability through serverless architectures, increased efficiency and throughput, lower overhead, reduced cost, and more secure integration between internal and external systems.</p><p>Today, cloud providers offer greater metrics for each system/server/node/hop than ever before, (basically, more data about data i.e. meta-data). This enables more visibility and observability of meta-data to measure any process flow.</p><h3>What is observability?</h3><p>Observability is defined as the measure of how well internal states of a system can be inferred from knowledge of its external outputs [<a href="https://en.wikipedia.org/wiki/Observability">1</a>]. Further, for cloud computing, it would be the ability to measure a system’s current state based on the data it generates, such as logs, metrics, and traces [<a href="https://www.dynatrace.com/news/blog/what-is-observability-2/">2</a>].</p><p>Let’s look at a few scenarios to better understand observability, and how it can help us track performance of different processing pipelines.</p><h3>Use case 1: streaming</h3><p>Consider an example where users on a website can place orders. When the order is placed, the transaction is routed through external applications for hosting the website to the internal applications for processing the order. During processing of the order, other processes (internal or external) may be triggered, before storing a record of the completed transaction.</p><p>For this example, the process flow would look something like this:</p><figure><img alt="Streaming Data Process Flow" src="https://cdn-images-1.medium.com/max/1024/1*uCnWmetz5PJIjyQ-SnhLZw.png" /></figure><h3>Use case 2: batch</h3><p>Many data pipelines are triggered when a business process places a file in a storage location. In this example, a compressed file is dropped in a cloud storage bucket. When the file is placed, it’s sent or routed to internal applications for de-compression and processing. During the processing of the individual records, other processes (internal or external) may be triggered, before storing of the completed records.</p><p>The process flow would look like this:</p><figure><img alt="Batch Data Process Flow" src="https://cdn-images-1.medium.com/max/1024/1*ec50RCmRCqIIC9h8lVxQew.png" /></figure><h3>What is provenance?</h3><p>Provenance is defined as the place of origin or earliest known history of something [<a href="https://www.merriam-webster.com/dictionary/provenance">3</a>]. Regarding data pipelines, provenance would be the first step in the process flow in which we can begin to observe metrics. Ideally, this lineage traces back to the original system of record, and includes all transformations the record has undergone. By following each step/hop, metrics can be aligned to show problematic nodes or where Service Level Agreements (SLAs) are being missed, throughout the data pipeline.</p><p>Making provenance available can be costly (in terms of both money and performance), so such a decision needs to be weighed against other factors for implementation. For example, extensive meta-data would be excessive if there is more meta-data than the actual data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XpBQu-M3GhOtaiuyXKGjkA.png" /></figure><p>One approach to limit the impact of provenance, might be to capture and store only aggregate details (per hour, day). This will limit granularity capabilities, however, but it may be an effective compromise.</p><h3>Types of metrics</h3><p>Consider the metrics needed to implement observability on the example use cases above. Each step in the process flow would entail providing metrics (standard logs with minimal transformation) that can be leveraged in putting together observability on a data pipeline.</p><p><strong>Quality/completeness:</strong> These metrics focus on success and failures of a processing step in the workflow. Below is an example of quality metrics for an Apache Web Server for an hour.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LHubWly9wsI3FuTDZ6qKlg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r6Hx2NcJZ2g6Y3INbGz5Sw.png" /></figure><p><strong>Performance:</strong> These metrics focus on throughput and processing times. Below is an example of performance metrics for an Apache Web Server for an hour.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ypDfgP4t87VYO1J62J9K1A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kCtmQfMEg4EJhw-6eBhERw.png" /></figure><p><strong>Availability:</strong> These metrics focus on uptime (and any health check failures). Not all applications would be able to provide availability (health) logs, or metrics that can be used for observability. With Apache Web Server, the service uptime would provide useful details (since last restart).</p><pre>$ apachectl status</pre><pre>Apache Server Status for localhost (via 127.0.0.1)</pre><pre>Server Version: Apache/2.4.29 (Ubuntu)</pre><pre>Server MPM: prefork</pre><pre>Server Built: 2019-09-16T12:58:48</pre><pre>--------------------------------------------------------------------------</pre><pre>Current Time: Wednesday, 27-Nov-2019 13:06:03 IST</pre><pre>Restart Time: Wednesday, 27-Nov-2019 12:24:26 IST</pre><pre>Parent Server Config. Generation: 2</pre><pre>Parent Server MPM Generation: 1</pre><pre>Server uptime: 41 minutes 36 seconds</pre><p>However, this only works when Apache is online, presenting a gap in our observability needs (i.e. to highlight outages). So, another approach is to setup <strong>mod_status</strong> module on Apache [<a href="https://httpd.apache.org/docs/2.4/mod/mod_status.html">4</a>]. Followed by periodically calling the details (<strong>http://localhost/server-status?refresh=300</strong>) and storing the output. Below is an example of availability metrics (from periodic health checks) for an Apache Web Server for an hour:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rVQK54BEAWos-a1ySoda5g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2af2r8Z_zIL9I2EAnqbo0A.png" /></figure><h3>Approaches to data pipeline observability</h3><p>Following identification of all the available metrics, there are specific metrics that are most useful for different types of nodes, in addition to overall counts. For Infrastructure nodes, breakdown of requests by request type or success/failure is most meaningful. Meanwhile for application type nodes, it would be the processing times (min, max, avg).</p><p>As an example, when focused on SLAs a Data Pipeline Observability Dashboard should help identify and highlight:</p><ul><li>Cause of a bottleneck</li><li>Identify a time window for SLA breaches</li></ul><p>For Data Pipeline Observability, there are generally 2 paths to approach:</p><p><strong>Time-based observation:</strong> Basically a comparison of each node based on the same time-interval (<em>NOTE</em>: this may not show all the nodes processing the same identical records.)</p><p><strong>Unique Identifier Observation:</strong> This is based on a unique identifier that can propagate through the entire data pipeline. When the initial time-based filter is applied on the first node, the unique identifier is referenced in further checks to show processing of identical records throughout the whole process.</p><h3>Observability dashboards</h3><p>With the previous defined process flow, along with the collection of all the various types of metrics, we are now able to put everything together in the respective dashboards.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PBmi8MZbuQjcZ7_NZWg6tQ.png" /></figure><h3>Streaming dashboard</h3><p>Below is a sample streaming dashboard, that showcases: request progressing through infrastructure (firewall, load balancer, container), record processing (validate, process, store).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g49Wd6ZrAerOWOAlsFKLOA.png" /></figure><h3>Batch dashboard</h3><p>Below is a sample batch dashboard, that showcases: handling of batch (compressed) files, decompression of files into records, validation of records, processing based on business logic (with internal and external requests) and final storing of requests.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mhcl5qUWXLBNgqicCBau6A.png" /></figure><h3><strong>Conclusion</strong></h3><p>With everything that was covered, you should have a better understanding of the parts and process for observability. From leveraging the right metrics for each step in the process, to ingesting the earliest record for complete lineage (provenance), putting everything together, will provide unique insights into the health and capacity of processing steps, dependencies, and overall complete pipeline visibility.</p><h4><em>Additional thoughts</em></h4><p>Other features can be added to further improve on observability, such as:</p><p><strong>Notifications &amp; alerts:</strong> These can be pre-configured values when breached to inform the various stakeholders. (<em>NOTE</em>: in the cloud, it is best to also consider quota limits. Where a service limit could have an unknowingly performance impact on operations.)</p><p><strong>Anomaly detection:</strong> Leveraging ML to identify any anomalies based on historical data and trends, that should be noted and/or require stakeholder awareness. Training the model with appropriate input is key for obtaining accurate and relevant predictions.</p><h3>References</h3><ul><li><a href="https://en.wikipedia.org/wiki/Observability">Observability - Wikipedia</a></li><li><a href="https://www.dynatrace.com/news/blog/what-is-observability-2/">What is observability? Not just logs, metrics and traces</a></li><li><a href="https://www.merriam-webster.com/dictionary/provenance">Definition of PROVENANCE</a></li><li><a href="https://httpd.apache.org/docs/2.4/mod/mod_status.html">mod_status - Apache HTTP Server Version 2.4</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90346626499f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/slalom-build/data-pipeline-observability-in-cloud-computing-90346626499f">Data Pipeline Observability in Cloud Computing</a> was originally published in <a href="https://medium.com/slalom-build">Slalom Build</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>