✓ ShippedByAgents
Practitioner (own blog/paper) Migration

Grafana Labs builds Tern, a phased team of AI agents, to pull 17 core data sources out of the Grafana monolith into their own repos after doing the first one mostly by hand

Grafana's data sources team wanted every core data source (Prometheus, Loki, CloudWatch, MySQL and others) in its own repository with no imports from core Grafana and its own release process, while still bundling it into Grafana distributions. Elasticsearch was externalized mostly by hand, which was slow, with 17 data sources still to go. Engineer Nathan Verzemnieks built Tern, which runs AI agents in phases: two agents compared the finished CloudWatch and Elasticsearch repos with their old homes and catalogued every change; another turned that into step-by-step guides with exact commands, decision trees and verification checks; two more audited the remaining data sources against the guides; then each externalization ran, with failures folded back into the guides. The first fully agent-driven run (MySQL) surfaced a private package that had to be vendored and an import-rewrite command that dropped subdirectories. Agents did the mechanical work (rewriting imports, migrating build config, scaffolding plugins, preserving history) while engineers handled shared Prometheus/Loki code and rollout surprises. The majority of the data sources have followed, with the rest planned over the coming months.

The numbers (as reported)

Scope17 data sources still to externalize after Elasticsearch
ProgressThe majority have followed; the remaining few planned over the coming months

Facts

Company / subject
Grafana Labs
Tools
Unstated
In-house tools
Tern
Codebase
brownfield
Work type
Migration
Stack
—
Published
2026-09-24
Last checked
2026-11-20

What the source claims Practitioner (own blog/paper)

Claimed by the builder, writing about their own work. Not checked independently.

  • Agents handled the mechanical work of each externalization, with engineers supervising
    “The agents were fast at the mechanical work, like rewriting imports, migrating build config, and scaffolding plugins”

Caveats

Written by a Grafana Labs engineer on the team that did the work. The post gives no timings, PR counts or costs, and does not name the coding agent or model, so tools are Unstated. The author says it is not the case that 'AI externalized our data sources': engineers made every hard decision, including splitting shared Prometheus/Loki code, and found rollout problems (bundled content provisioned to the wrong instances, changed request handling) by watching live traffic.

More stories by tool: Unstated

Related topics: MigrationsBrownfield codebases

Source

Grafana Labs Engineering on Medium (Kate Vredenburgh)

One email a week: what actually shipped

New sourced stories, the numbers behind them, and what didn't work. No hype.

We'll only use this to send the newsletter. See the privacy page.