Grafana Agent is officially dead: on November 1, 2025 it reached end-of-life — no more releases, only migration. Its successor, Grafana Alloy, collects metrics, logs, traces and profiles in a single process with a single config, and in autumn 2026 it reached database observability. If your nodes run a Prometheus scraper, a log shipper and an OTel sidecar in parallel — here is how that becomes one deployment.
Table of contents
Open Table of contents
The zoo: how many agents do you operate
A typical cluster accumulates agents on the “one beast per signal” principle:
- metrics — Prometheus or Grafana Agent static: discovery, scrape, remote_write;
- logs — Promtail or Fluent Bit: file tails, push to Loki;
- traces — OTel Collector: OTLP ingestion, batching, export to Tempo;
- profiles — a separate Pyroscope agent or SDK.
Two to four agents per node, each with its own config format, release cadence, RBAC and failure modes: the log shipper dies on a bad regex, the scraper on cardinality — and the causes live in three different places. Grafana Agent tried to merge the zoo but grew two heads itself — static on YAML and Flow on River — and both modes hit EOL. The point of convergence is Alloy: Flow as the foundation, with Prometheus, OTel Collector and Pyroscope components inside.
How to read an Alloy config
The config is a set of components namespace.component "label". A component has arguments (input) and exports (output), and the arrows between them are plain expressions:
discovery.relabel "pods" {
targets = discovery.kubernetes.pods.targets // output of one
rule { ... }
}
prometheus.scrape "pods" {
targets = discovery.relabel.pods.output // input of another
forward_to = [prometheus.remote_write.default.receiver]
}
Three rules for reading it:
- name = type + label —
prometheus.scrape "pods"and"nodes"are two independent scrapers; - pipeline = expressions — a reference to an export (
X.output,X.receiver) is the arrow of the graph; - the config is a DAG — Alloy validates the graph at startup and renders it live in the web UI.
The language used to be called River (an Agent Flow inheritance) and is now officially the “Alloy config syntax” — same essence: braces, expressions, alloy fmt in CI. Namespaces follow signal providers: prometheus.* (scrape, remote_write, discovery), otelcol.* (receivers, processors, exporters from OTel Collector), loki.* (source and write), pyroscope.* (profiles), remote.* and import.* (values and config fragments from outside).
What one agent changes
- one process, four signals — metrics via scraping and OTLP, traces and profiles via OTLP, logs from Kubernetes and files: one DaemonSet instead of three;
- OTLP-native —
otelcol.receiver.otlptakes traces, metrics and profiles on one port (4317 gRPC / 4318 HTTP): applications cannot tell it from a Collector; - profiles without a dedicated agent — pull via
pyroscope.scrapeor push over OTLP; - live UI on
:12345— the component graph, statuses, errors, throughput; you see the pipeline instead of imagining it from YAML; - hot config — edits apply without a restart, and
import.*pulls config fragments from Git, HTTP, S3 or a ConfigMap — no redeploy; alloy convert— converts existing Grafana Agent (static and Flow), Prometheus and OTel Collector configs.
Migrating off Grafana Agent
- Flow → Alloy is nearly one-to-one: Alloy is the direct continuation of Flow, component names match. Run
alloy convert --source-format=flow, read the diff, check the deprecated list in the release notes. - Static → Alloy via
alloy convert --source-format=grafana-agent: YAML sections are rewritten into components,scrape_configsbecome discovery +prometheus.scrapepairs. The result works, but re-verify relabel chains and integrations by hand. - OTel Collector → Alloy —
--source-format=otelcolmoves receivers/processors/exporters intootelcol.*components; custom builds with private plugins will not port.
The fork: Alloy versus OTel Collector
We covered a minimal OTel Collector separately — the industry standard; Alloy does not “kill” it but occupies the neighboring niche:
Alloy is more convenient when:
- your backends are the Grafana stack: specialized components for Loki, Mimir, Tempo and Pyroscope with their features (partitioning, tenant labels, retention hints);
- you need Prometheus-style scraping out of the box: Kubernetes discovery, relabel chains,
prometheus.io/scrapeannotations — without nested YAML; - assembly speed matters: one Helm chart and one config cover the whole agent.
Collector is mandatory when:
- backends are non-Grafana, or there are many: fresh vendor exporters land in contrib before they get ported to Alloy;
- you need your own distribution: custom processors, builds for regulatory environments, or a vendor-neutral requirement as such;
- you are building a gateway layer: centralized routing, multi-tenancy, redaction and federation.
| Grafana Alloy | OTel Collector | |
|---|---|---|
| Config | River/DAG, expression wiring | YAML: receivers → processors → exporters |
| Prometheus scraping | discovery.* + prometheus.scrape | prometheus receiver inside YAML |
| Kubernetes logs | loki.source.kubernetes | filelog receiver |
| Profiles | pyroscope.* + OTLP | OTLP profiles |
| Pipeline UI | live component graph | none — zpages and metrics |
| Component base | a subset of contrib + Grafana specifics | all of contrib + custom builds |
| Best for | Grafana stack, one agent, speed | any backend, the standard, custom distributions |
The two also cascade well: Alloy on nodes collects and normalizes, then OTLP flows to a central Collector gateway that routes to all backends, including non-Grafana ones.
What you need to assemble the pipeline in a cluster
You need a cluster, Helm 3, and live backends (Prometheus or Mimir, Loki, Tempo) — substitute your own addresses. The whole agent is one file, config.alloy.
1. Install. A DaemonSet from the official chart, config straight from the file:
helm repo add grafana https://grafana.github.io/helm-charts
helm upgrade --install alloy grafana/alloy \
--namespace monitoring --create-namespace \
--set controller.type=daemonset \
--set-file alloy.configMap.content=config.alloy
A DaemonSet for logs and node exporters; for central OTLP intake, run a second release with controller.type=deployment.
2. Metrics: annotations → scrape → Prometheus.
discovery.kubernetes "pods" {
role = "pod"
}
discovery.relabel "pods" {
targets = discovery.kubernetes.pods.targets
rule {
source_labels = ["__meta_kubernetes_pod_annotation_prometheus_io_scrape"]
regex = "true"
action = "keep"
}
rule {
source_labels = ["__address__", "__meta_kubernetes_pod_annotation_prometheus_io_port"]
regex = "([^:]+)(?::\\d+)?;(\\d+)"
replacement = "$1:$2"
target_label = "__address__"
}
}
prometheus.scrape "pods" {
targets = discovery.relabel.pods.output
scrape_interval = "30s"
forward_to = [prometheus.remote_write.default.receiver]
}
prometheus.remote_write "default" {
endpoint {
url = "http://prometheus:9090/api/v1/write"
}
}
A pod annotated with prometheus.io/scrape: "true" and optional port/path is picked up automatically.
3. Traces: OTLP → batch → Tempo. Applications send OTLP to alloy:4317 (gRPC) or :4318 (HTTP):
otelcol.receiver.otlp "apps" {
http {}
grpc {}
output {
traces = [otelcol.processor.batch.traces.input]
}
}
otelcol.processor.batch "traces" {
output {
traces = [otelcol.exporter.otlp.tempo.input]
}
}
otelcol.exporter.otlp "tempo" {
client {
endpoint = "tempo:4317"
tls {
insecure = true
}
}
}
4. Logs: pods → Loki. The same discovery feeds container-log targets:
loki.source.kubernetes "pods" {
targets = discovery.kubernetes.pods.targets
forward_to = [loki.write.default.receiver]
}
loki.write "default" {
endpoint {
url = "http://loki:3100/loki/api/v1/push"
}
}
Filter noisy namespaces with a rule using action = "drop" in a separate discovery.relabel — the same format as for metrics.
5. Config without a redeploy. Volatile parts move out of the main file: remote.http/remote.s3 pull values (tokens, endpoints), while import.git and import.kubernetes.configmap pull whole config fragments:
import.kubernetes.configmap "extras" {
name = "alloy-extras"
namespace = "monitoring"
}
Alloy watches the source: a ConfigMap apply or a Git push is picked up on the fly, without restarting the pod. The old remote.cfg from Agent Flow lives on this way — as values via remote.*.
How to verify it works
kubectl -n monitoring get pods -l app.kubernetes.io/name=alloy
kubectl -n monitoring port-forward svc/alloy 12345:12345
- UI at
http://localhost:12345— the component graph: all nodes alive, scrape shows targets and rates, exporters show delivery errors; - config —
alloy validate config.alloyandalloy fmtbefore committing; - a trace — hit an instrumented service and find the span in Grafana Explore → Tempo by
service.name; - logs — Explore → Loki:
{pod="..."}with thenamespace/containerlabels thatloki.source.kubernetessets itself; - self-metrics — Alloy exposes its own at
:12345/metrics: component health and delivery queues.
Bottom line
Alloy is the fastest way to assemble the telemetry plane around Grafana: one process instead of an agent zoo, one River config, a live UI and hot updates; the price is tying the component interface to the Grafana ecosystem. The OTel Collector remains the industry standard for everything else: multi-backend, neutrality, custom distributions, gateway topologies. Choose by purpose, not by hype: a Grafana stack — take Alloy and stop multiplying agents; heterogeneous backends and a hard standard requirement — Collector, and they work best cascaded. How to build a Collector the paved way — in our earlier article.