Metrics Board: Building an Agent-ready Metrics Layer
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.
Related posts
- Metric Semantic Layer: How Lyft Governs and Scales Key Data Definitions
Lyft Engineering mediumAdeptLyft 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. Python APIs generate or execute SQL for chosen dimensions and time granularity, and they feed dashboards, Airflow, ML workflows, an Amundsen catalog integration, a no-code Metric UI, and an MCP server that grounds AI agents. Governance admits only metrics with at least two distinct use cases. Each one has a team-level Business Owner for metric health and an Operational Owner for data health, and both must approve every definition change. Lyft is now evaluating a vendor-managed semantic layer to integrate with more BI tools and databases.
- What's new in ClickStack - Aug ’26
ClickHouse mediumAdept
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. PromQL querying over ClickHouse's new TimeSeries engine (private preview, Prometheus remote write) lets Prometheus metrics sit alongside logs and traces. Charts gain arithmetic formulas over series, a metrics explorer, and release markers derived from service.version. Also new are a beta LLM observability dashboard built on OpenTelemetry GenAI conventions, plus alerting upgrades: up to ten targets, names and tags, evaluation history via API, and richer webhook payloads with stable alert IDs.
- Building an Observability Solution with ClickHouse at Dash0
ClickHouse hardMaster
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. The setup tiers storage with 1-2 days on local disk, then AWS S3 plus a local cache, driven by TTL moves, and keeps metrics for 13 months. Tables are ordered by a ResourceHash before Timestamp for better filtering and compression, with daily partitions bounding time ranges, and the cluster runs as a single shard with multiple replicas. Metric metadata is deduplicated into an AggregatingMergeTree table keyed by MetricHash with FirstSeen/LastSeen tracking, and queries against it must use GROUP BY or FINAL because merges are not guaranteed to have happened.
- Is it over for metrics?
ClickHouse easyNovice
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. As columnar stores like ClickHouse make incremental rollups over structured wide events cheap, a metric becomes effectively a cached query: you keep raw events at full fidelity and derive aggregates as a performance optimization. That moves curation later, letting humans and LLM agents decide what to aggregate after exploring real data, much like the ETL-to-ELT shift.
- How We Export Metrics to Third-Party Services
Neon mediumAdept
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. Collectors are provisioned through the OTel Kubernetes Operator via a custom resource. Each one scrapes sql_exporter and Vector endpoints using Kubernetes pod service discovery filtered by project label, then applies memory limiting and batching before exporting. Per-project placement was chosen over per-user or per-org collectors to avoid cross-region scraping latency and to keep failure domains isolated, and the setup reuses the same scraping model as the internal vmagent/VictoriaMetrics monitoring pipeline.