---
title: "Metrics Board: Building an Agent-ready Metrics Layer"
description: "Pinterest's Metrics Board is a thin semantic layer where each metric is defined once as a YAML spec in Git, with arbitrary SQL plus temporal and modelling metadata, instead of being forced into a strict semantic model."
url: "https://swe.quest/articles/metrics-board-building-an-agent-ready-metrics-layer-2bc254bb605b6f70"
canonical: "https://medium.com/pinterest-engineering/metrics-board-building-an-agent-ready-metrics-layer-2c8fefe68756"
source: "Pinterest Engineering"
published: "2026-10-06"
difficulty: "medium"
kind: "Case study"
reading_minutes: 10
tags: ["analytics","data-pipelines","ai-agents","observability"]
---

# Metrics Board: Building an Agent-ready Metrics Layer

A post on [Pinterest Engineering](https://swe.quest/sources/pinterest.md), published 2026-10-06, 10 min read, Case study. Original: [https://medium.com/pinterest-engineering/metrics-board-building-an-agent-ready-metrics-layer-2c8fefe68756](https://medium.com/pinterest-engineering/metrics-board-building-an-agent-ready-metrics-layer-2c8fefe68756)

## Summary

Pinterest's Metrics Board is a thin semantic layer where each metric is defined once as a YAML spec in Git, with arbitrary SQL plus temporal and modelling metadata, instead of being forced into a strict semantic model. Each definition generates its own Airflow DAG with sqlglot-derived upstream dependency sensors, rule-based and ML anomaly validations, and automatic publishing to DataHub, the Helium experimentation platform, Superset and StarRocks. Metric certification grades and dashboard tiers act as trust signals, and an MCP server exposes certified definitions to an analytics agent. Metric creation dropped from days or weeks to 1–2 hours, and over 98% of experiment metrics now go through the platform.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Data pipelines](https://swe.quest/tags/data-pipelines.md) (Data & databases)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)

## Prerequisites

- Airflow DAGs ([easy posts on Data pipelines](https://swe.quest/tags/data-pipelines.md?difficulty=easy))
- SQL ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))
- data warehouse basics ([easy posts on Analytics & OLAP](https://swe.quest/tags/analytics.md?difficulty=easy))

## Keywords

Metrics Board, Airflow, sqlglot, DataHub, Superset, StarRocks, MCP, Pinterest

## Related posts

- [Metric Semantic Layer: How Lyft Governs and Scales Key Data Definitions](https://swe.quest/articles/metric-semantic-layer-how-lyft-governs-and-scales-key-data-definitions-cb56db8cd5933bc9.md): Lyft Engineering · 2026-06-10 · Medium · 6 min read · Analytics & OLAP, Data pipelines, SQL, Python, AI agents
  Lyft built a Metric Semantic Layer (MSL), a versioned Python package that stores each company-wide "Golden Metric" as YAML metadata plus Jinja-templated SQL, so a definition is updated once and flows to every downstream consumer.
- [What's new in ClickStack - Aug ’26](https://swe.quest/articles/what-s-new-in-clickstack-aug-26-6426e76d49852a0f.md): ClickHouse · 2026-09-16 · Medium · 16 min read · Observability, Analytics & OLAP, LLMs
  ClickStack v2.34–v2.38 centers on dashboards: dashboard variables are now GA, letting a filter's selection be substituted into raw SQL, builder fields, Lucene and PromQL, with macros like $\_\_filter and $\_\_conditionalAll to handle empty selections and chained dropdowns.
- [Building an Observability Solution with ClickHouse at Dash0](https://swe.quest/articles/building-an-observability-solution-with-clickhouse-at-dash0-f950ba66eb3161c6.md): ClickHouse · 2025-04-07 · Hard · 18 min read · Analytics & OLAP, Observability, Storage engines, Databases, Cost optimization
  Dash0 stores all OpenTelemetry metrics, logs and spans in ClickHouse, using PostgreSQL only for customer settings, so signals can be joined and correlated in one system.
- [Is it over for metrics?](https://swe.quest/articles/is-it-over-for-metrics-aa66afe76fd647ef.md): ClickHouse · 2026-02-12 · Easy · 7 min read · Observability, Analytics & OLAP
  Metrics are pre-aggregated, low-cardinality summaries that remain useful for inherently aggregate signals like CPU and memory and for stable alert thresholds, but they discard the high-cardinality dimensions (pod ID, request ID, trace ID) needed to debug specific failures and are hard to correlate with logs and traces.
- [How We Export Metrics to Third-Party Services](https://swe.quest/articles/how-we-export-metrics-to-third-party-services-3378a3c9ceb725eb.md): Neon · 2025-06-24 · Medium · 4 min read · Observability, Kubernetes, PostgreSQL
  Neon streams Postgres and host metrics to Datadog, New Relic and any OTLP-compatible platform by running a per-project OpenTelemetry Collector colocated with compute pods in each region.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
