Different teams were using inconsistent definitions for the same metric, leading to outdated or conflicting data.

This caused unreliable forecasts, operational decisions, and wasted engineering effort.

The team solved it by: 👉 Store metric metadata in readable YAML files and SQL Jinja templates. 👉 Expose definitions through a versioned Python package and APIs. 👉 Govern ownership with Business and Operational owners for each Golden Metric.

The parts that matter: 1️⃣ Python package - provides methods and APIs to fetch and execute metric SQL 2️⃣ YAML configurations - capture metric metadata and core definition in a flexible format

All teams now query a single, authoritative definition, ensuring consistent terminology and assumptions.

The approach adds governance overhead: every metric change must be approved by two owners and follow a cadence. It also limits the layer to "Golden Metrics", so niche metrics remain outside the system, requiring separate handling.

How do you balance the need for strict metric governance with the agility required for fast-moving product teams?