Achieving Comprehensive Long-Term Observability for Amazon Redshift Using Amazon S3 Tables and Datadog

The ability to maintain a historical record of data warehouse activity has long been a challenge for enterprise data teams tasked with maintaining performance, auditing security, and ensuring compliance. Amazon Redshift, a cornerstone of modern cloud data warehousing, captures operational history across more than 25 system views, ranging from granular query execution details in SYS_QUERY_HISTORY to full query text in SYS_QUERY_TEXT. However, the standard retention window for this data is limited to just seven days. Beyond this short timeframe, operational history effectively vanishes, creating a critical visibility gap that prevents teams from performing long-term audits, investigating slow-moving performance regressions, or meeting regulatory requirements that mandate months or years of data lineage.
This operational constraint is now being addressed through a strategic integration between Amazon Redshift and Amazon S3 Tables. By leveraging the Apache Iceberg open table format, Amazon Redshift can now automatically and continuously offload system table data into Amazon S3 Tables. This development effectively decouples data retention from the warehouse’s internal lifecycle, granting administrators ownership over their historical logs and the ability to define their own retention policies.

The Evolution of Data Retention in Cloud Warehousing
For years, database administrators have faced a recurring dilemma: store massive amounts of audit logs directly within the warehouse, which consumes valuable compute and storage resources, or lose the data entirely. The seven-day retention period is standard for high-performance cloud environments because it balances the need for real-time diagnostics with the performance cost of managing massive, ever-growing system tables.
The introduction of the Amazon S3 Tables integration marks a paradigm shift. With this feature, the burden of managing logs shifts from the warehouse engine to a cost-effective, scalable storage layer. Because the data is stored in the Apache Iceberg format, it remains accessible to a wide variety of analytical engines, including Amazon Athena and Redshift itself, without requiring proprietary ingestion pipelines. Furthermore, the integration handles routine maintenance tasks such as compaction and snapshot management, reducing the operational overhead for DevOps and data engineering teams.
Bridging Observability with Datadog
While the capability to store data long-term is a significant technical milestone, the raw data must be actionable to provide real value. To bridge this gap, AWS and Datadog have collaborated to integrate Datadog Data Observability with these exported S3 Tables. Datadog, a leader in cloud-native observability, has previously relied on running read-only SQL queries directly against Amazon Redshift clusters to collect performance telemetry. While effective, this method creates an inherent "observability tax"—the very process of monitoring the warehouse consumes compute cycles that could otherwise be used for business-critical analytical workloads.

By shifting the data source to Amazon S3 Tables, Datadog can now extract deep insights without placing any additional load on the Amazon Redshift production environment. This architectural change allows for more frequent and comprehensive polling of system metadata, which in turn feeds into Datadog’s advanced features: column-level lineage, query performance analysis, and automated quality monitoring.
Technical Architecture and Implementation
The integration operates through a seamless delivery pipeline. When enabled, Amazon Redshift acts as a producer, writing system table logs directly to an S3 bucket managed by Amazon S3 Tables. Datadog, acting as a consumer, accesses this data through the S3 Tables Iceberg REST endpoint.
To implement this, organizations must configure an IAM role that grants Datadog the necessary permissions to interface with S3 Tables. The required policy is relatively straightforward, requiring s3tables:GetTableBucket, s3tables:GetTableMetadataLocation, and s3tables:GetTableData permissions. A critical consideration for security-conscious organizations is the encryption strategy; because the integration relies on AWS Key Management Service (KMS), administrators must ensure that their KMS key choice is deliberate. Once a table is created with a specific customer-managed key, the encryption key cannot be modified, making the planning phase essential for organizations with strict compliance requirements.

Analyzing the Impact: Lineage, Performance, and Quality
The shift from warehouse-based polling to S3-based analysis fundamentally changes how data teams troubleshoot issues. In a traditional setup, tracing a data quality issue often requires manually stitching together logs from various stages of a pipeline. With the new integration, Datadog provides a unified view of end-to-end data lineage.
For instance, if a dashboard report displays incorrect revenue figures, engineers can utilize Datadog’s lineage graph to trace the dependency from the downstream Tableau report, through the specific transformation jobs in AWS Glue or dbt, and back to the base Amazon Redshift table. Because this lineage is built on long-term query history rather than a seven-day window, teams can identify root causes for regressions that may have been introduced weeks prior.
Query analysis also benefits from this persistence. By analyzing normalized query patterns over months, Datadog can detect "drift" in query performance. This allows teams to identify queries that are slowly consuming more memory, scanning more data, or spilling to disk, enabling proactive optimization before these queries impact the end-user experience. Furthermore, the anomaly detection engine can automatically alert teams to unusual behavior—such as a sudden drop in row counts or a change in schema—without the need for manual threshold configuration.

Industry Implications and Future Outlook
The broader implication of this integration is the commoditization of metadata. By standardizing on Apache Iceberg, AWS is enabling an ecosystem where observability is no longer siloed within the database engine itself. This allows for cross-platform observability, where metrics from Amazon Redshift can be correlated with telemetry from Apache Airflow, Amazon EMR, and various BI tools in a single pane of glass.
From an organizational standpoint, the reduction in operational load and the increased retention capacity allow data teams to transition from reactive troubleshooting to proactive governance. The ability to maintain an immutable record of query history is not just a performance benefit; it is a critical component of data security and regulatory compliance. As enterprises continue to scale their data operations, the ability to maintain a long-term, high-fidelity audit trail will become a baseline requirement for any robust data architecture.
Operational Best Practices and Maintenance
While the system is designed to be low-maintenance, organizations should be mindful of the "clean-up" phase. Disabling the integration requires executing specific commands for either provisioned clusters or serverless workgroups. It is vital to coordinate this with the Datadog account team to ensure that the query history source is switched back to the warehouse if necessary, preventing any gaps in observability data.

Furthermore, storage costs for S3 Tables should be monitored. While there is no charge for the delivery of data from Redshift to S3, the storage and request costs associated with the S3 Tables themselves remain. Organizations should define a lifecycle policy for this historical data to balance the cost of storage against the requirements of their data retention policies.
Conclusion
The integration of Amazon Redshift with Amazon S3 Tables, coupled with the enhanced observability capabilities provided by Datadog, represents a significant advancement in data warehouse management. By extending the lifecycle of system metadata from one week to an indefinite period, AWS has unlocked new possibilities for auditing, performance tuning, and data quality assurance.
This solution moves the industry closer to the goal of "zero-touch" observability, where the infrastructure itself provides the telemetry necessary to maintain its own health. As data environments grow in complexity, the ability to lean on automated, scalable, and open-standard integrations will be the defining factor in whether data teams can maintain control over their pipelines or fall behind under the weight of their own data. For organizations already utilizing the AWS ecosystem and Datadog, this integration offers a clear path toward more reliable, performant, and transparent data architectures.







