Pinterest built Metrics Board, an end-to-end platform to automate metric creation, enforce quality, and enable agent-driven analytics for their petabyte-scale data lake. This system design centralizes metric definitions, automates computation via Airflow DAGs, ensures data quality, and integrates with various downstream products like data catalogs and BI tools.
Read original on Pinterest EngineeringAt Pinterest, critical business and experimentation decisions rely on reliable and trustworthy metrics. Faced with thousands of metrics created by hundreds of data producers, Pinterest developed Metrics Board to address the challenges of inconsistent metric definitions, slow pipeline creation, and lack of trust in data. This platform aims to provide a unified, scalable, and resilient solution for metric management at a planetary scale.
Metrics Board operates on five core pillars, ensuring an end-to-end solution from definition to consumption.
System Design Takeaway: Centralized Semantic Layers
Implementing a centralized semantic layer, like Metrics Board, significantly improves data governance, consistency, and trust in metrics across large organizations. Treating metric definitions as code in a version-controlled system is crucial for reliability and collaboration. The decision to support raw SQL over a strict semantic model for definitions highlights a pragmatic approach to user adoption and adaptability to diverse data sources.