LinkMesh

Search docs, blog and changelog

ENDE
A machined steel union coupling joining two pipes of different thread standards on a workbench
LinkMeshObservability Data Collection Management
Grafana AlloyOpenTelemetry

Alloy vs. OpenTelemetry Collector

Config language, remote management, ecosystem, and how to choose.

linkmesh.io
Philippe BraxmeierPhilippe Braxmeier← Back to blog
11 min readupdated Nov 9, 2026

Update 18 October 2026: LinkMesh no longer manages Grafana Alloy collectors. It manages upstream OpenTelemetry Collectors over OpAMP. If you run Alloy today, see the migration guide.

Update 9 November 2026: Grafana’s documentation now describes two Alloy engines (including an OTel Engine that runs standard Collector YAML, in public preview), remote management of upstream Collectors through Grafana Fleet Management, and an experimental Graph page in the Alloy UI. This post is corrected below; sources and the date they were checked are at the end of the comparison.

“Grafana Alloy or the OpenTelemetry Collector?” is one of the most common questions when a team standardizes its telemetry agent. The honest answer is that they’re much closer than the versus framing suggests — Alloy is an OpenTelemetry Collector distribution — so the decision comes down to a few specific differences, not a winner-takes-all.

This post walks through what they actually share, where they genuinely differ (config language, remote management, ecosystem), a decision matrix, and what changes when you move a fleet from one to the other.

Lineage: Grafana Agent → Alloy

Grafana Alloy is the successor to the Grafana Agent. More importantly for this comparison, Grafana positions and builds Alloy as a vendor-neutral distribution of the OpenTelemetry Collector: it embeds OTel Collector components and adds Grafana’s own pipelines — Prometheus scraping and service discovery, Loki for logs, Pyroscope for profiles — plus native clustering and a built-in debugging UI.

So this isn’t “Grafana’s thing vs the open standard.” Both speak OTLP; both are built from OpenTelemetry Collector components. otelcol-contrib is the community “contrib” distribution — the broadest catalog of OTel receivers, processors, and exporters. Alloy is a curated OTel distribution with the Grafana/Prometheus ecosystem bolted on. Keep that framing and the rest of the decision gets much simpler.

Two engines in one binary

Since this post was first written, Alloy has grown a second way to run. According to Grafana’s documentation, both engines are built into the same Alloy binary:

  • The Default Engine (alloy run) is Alloy’s own runtime. It uses Alloy configuration syntax and is the stable, most polished experience.
  • The OTel Engine (alloy otel) runs the OpenTelemetry Collector runtime directly, from standard Collector YAML, with no translation into Alloy syntax. Grafana labels it a public preview feature and says public preview features are subject to breaking changes.

The rest of this post compares the Collector with the Default Engine unless it says otherwise, because that is the engine Grafana calls stable. If you run the OTel Engine, you are closer to the Collector than the config-language section below suggests, and the remaining differences are the ecosystem around it.

Config language: River (Alloy syntax) vs YAML

The most visible difference is how you write a pipeline. The Collector uses YAML with receivers, processors, exporters, and service.pipelines. Alloy uses a component-based configuration syntax (originally “River”) where components are wired by referencing each other’s inputs and outputs.

The same OTLP-in, batch, OTLP-out pipeline in the Collector (YAML):

receivers:
  otlp:
    protocols:
      grpc:
processors:
  batch:
exporters:
  otlp:
    endpoint: otlp.example.com:4317
service:
  pipelines:
    metrics:
      receivers: [otlp]
      processors: [batch]
      exporters: [otlp]

Note (November 2026): the batch processor in this example is deprecated upstream and is scheduled for removal in Collector v0.177.0. The config still works today. To migrate, move batching into the exporter’s sending_queue: see OpenTelemetry Batch Processor Deprecated: How to Migrate.

…and in Alloy:

otelcol.receiver.otlp "default" {
  grpc { }
  output {
    metrics = [otelcol.processor.batch.default.input]
  }
}

otelcol.processor.batch "default" {
  output {
    metrics = [otelcol.exporter.otlp.default.input]
  }
}

otelcol.exporter.otlp "default" {
  client {
    endpoint = "otlp.example.com:4317"
  }
}

Same pipeline, two mental models. YAML is a declared graph — you list stages and name them in service.pipelines. Alloy is an explicit wiring graph — each component declares where its output goes by reference. Alloy’s model is powerful when you’re fanning discovery, scraping, and OTel components together in one agent; YAML is simpler and more portable across the OTel ecosystem.

That comparison is the Collector against Alloy’s Default Engine. The OTel Engine takes the YAML version above as it is, so for a new setup the config language is a choice of engine, not a given.

That comparison is the Collector against Alloy’s Default Engine. The OTel Engine takes the YAML version above as it is, so for a new setup the config language is a choice of engine, not a given.

There’s also a learning-curve angle. YAML is familiar and copy-pasteable from the huge body of Collector examples online. Alloy’s syntax takes a moment longer to internalize, but the explicit references make large configs easier to reason about — you can see exactly what feeds what, instead of matching names across a service.pipelines block. Neither is hard; they just reward slightly different habits.

Remote management: remotecfg vs OpAMP

Neither tool wants you hand-editing config on every host, and each has a native way to pull config from a central server:

  • Alloy has a remotecfg block: the agent fetches its configuration from a remote endpoint that implements Alloy’s remote-config API (Grafana Cloud Fleet Management, or any compatible server) and polls for updates. The default poll_frequency is one minute, with a minimum of ten seconds.
  • otelcol-contrib uses OpAMP — in practice via the opampsupervisor, which applies pushed config and reports health. (We covered this in depth in OpAMP Explained.)

Both get you central config; they are different protocols. remotecfg is Alloy’s own API, polled on a schedule. OpAMP is an open standard, and its WebSocket transport keeps a connection open so the server can send config and the agent can report status. In both cases the agent authenticates to the server (typically a bearer token), and in both cases you want the config validated before it ships — a pipeline that fails to start is a bad pipeline no matter how it arrived.

Two things have moved since this post was first written. Grafana Fleet Management now also manages upstream OpenTelemetry Collectors: remote management of upstream Collectors became generally available on 8 July 2026. And for Alloy’s own OTel Engine, Grafana documents an otel-supervisor command that runs the engine under an embedded OpAMP supervisor, with its configuration coming from Fleet Management. The OTel Engine is itself a public preview, so treat that path as preview too.

The practical consequence if you run both runtimes: you operate two different remote-config mechanisms side by side unless your control plane covers both. Grafana Fleet Management does, for Alloy and, since July 2026, for upstream Collectors.

Ecosystem, UI, and self-telemetry

A few differences that matter day to day:

  • Component catalog. otelcol-contrib carries the widest set of OTel components, including niche receivers and exporters. Alloy curates which OTel components it wraps, and adds the Prometheus/Loki/Grafana components the Collector doesn’t have. If you depend on a specific contrib component, check Alloy supports it; if you live in the Prometheus/Grafana world, Alloy has batteries the Collector doesn’t.
  • Built-in UI. Alloy ships a web UI (at localhost:12345 by default) with a table of components and their health, a page per component, and live debugging of what’s flowing through a component — genuinely useful when a pipeline misbehaves. Live debugging is off until you enable the livedebugging block, and the Graph page that draws the component graph is experimental: it needs stability.level set to experimental. The Collector exposes internal metrics and zPages but no built-in graph UI.
  • Clustering. Alloy has native clustering to share scrape targets across instances; the Collector leaves that to how you deploy it.
  • Self-telemetry. Both emit metrics about themselves — throughput, queue sizes, dropped data, exporter failures — so you can monitor the agent, not just what flows through it. Alloy surfaces much of this in its UI; with the Collector you scrape its internal metrics endpoint. Either way, watching the agent’s own health is what turns “data stopped arriving” from a mystery into an alert.

Neither of these makes one “better” — they push toward different homes.

Decision matrix: when Alloy, when otelcol, when both

If you… Lean
Live in the Grafana/Prometheus stack (scraping, discovery, Loki) Alloy
Want the built-in UI with per-component pages + live debugging Alloy
Need native clustering for scrape targets Alloy
Want the broadest OTel component catalog / a niche contrib component otelcol-contrib
Want the upstream project’s own binary and its full component list, managed over OpAMP otelcol-contrib
Have a heterogeneous estate (some Grafana-heavy, some pure-OTel hosts) Both

That last row is the real world more often than people expect. Different teams, acquisitions, and platforms land you with Alloy on some hosts and otelcol on others — and that’s fine, as long as your management tooling covers both runtimes. Grafana Fleet Management does (it manages Alloy and, since July 2026, upstream Collectors). Self-hosted control planes often pick one; LinkMesh, for example, manages otelcol-contrib only.

Where LinkMesh fits: otelcol-contrib over OpAMP

LinkMesh manages one runtime: upstream otelcol-contrib, run by the opampsupervisor and managed over OpAMP. One config language (OpenTelemetry Collector YAML), one protocol, and the standard binaries the OpenTelemetry project ships. LinkMesh does not manage Grafana Alloy.

LinkMesh self-hosted control plane OpAMP otelcol-contrib run by opampsupervisor Grafana Alloy not managed by LinkMesh migrate
LinkMesh manages otelcol-contrib over OpAMP. An Alloy collector moves to otelcol-contrib and keeps its group's configuration.

You compose a pipeline once in the builder, and the control plane renders it as Collector YAML and delivers it to every collector in the group over OpAMP:

The LinkMesh pipeline builder: one pipeline definition, rendered as OpenTelemetry Collector YAML for every collector in the group.

Moving from Alloy

If part of your fleet runs Alloy today and you want it under LinkMesh, the move is a collector swap, not a config rewrite. LinkMesh stores sources, destinations and routes as its own model, not as River, so a new otelcol-contrib collector that joins the same collector group receives the group’s configuration rendered as Collector YAML. On a Linux host the swap takes about ten minutes, with a pause in collection of a minute or two. The steps, for hosts and Kubernetes, are in the migration guide.

If you want to keep Alloy, keep a control plane that manages Alloy, such as Grafana Fleet Management. That is a legitimate choice; the comparison above still holds.

Sources, checked 8 November 2026

The Alloy statements in this post come from Grafana’s own documentation:

Alloy’s documentation changes between versions, so check the page for the version you run.

The short version

Alloy and the OpenTelemetry Collector aren’t really rivals — Alloy is an OTel Collector distribution with the Grafana ecosystem attached, and it now comes in two engines, one of them running plain Collector YAML in public preview. Pick Alloy for the Grafana/Prometheus world and its UI; pick otelcol-contrib for the upstream project’s own binary and its full component list; run both when your estate is genuinely mixed, with management tooling that covers both. If you standardise on otelcol-contrib, a self-hosted control plane like LinkMesh manages it over OpAMP.

See the Features page, grab a binary from Downloads, or stand up a control plane and enroll your first otelcol-contrib collector at linkmesh.io/install. Moving from Alloy? Start with the migration guide.