1. Alloy, the common entry point #
Why go through Alloy.
Alloy’s role #
Available in: ✓ OSS ✓ Enterprise ✓ Cloud
Previous chapters showed how Alloy sends logs, metrics, traces and profiles to Loki, Mimir, Tempo and Pyroscope. But Alloy can also produce or receive data from other Grafana Labs tools: Faro RUM, Beyla eBPF instrumentation, database telemetry, k6 results. One agent to deploy, secure and monitor.
2. The integration map #
One component per tool.
Which component for which tool #
| Grafana Labs tool | Role | Alloy component | Course |
|---|---|---|---|
| Loki | Logs | loki.write | Loki |
| Mimir | Metrics | prometheus.remote_write | Mimir |
| Tempo | Traces | otelcol.exporter.otlp | Tempo |
| Pyroscope | Profiles | pyroscope.write, pyroscope.ebpf | Pyroscope |
| Faro | Front-end RUM | faro.receiver | Faro |
| Beyla | Zero-code eBPF instrumentation | beyla.ebpf | eBPF |
| Database Observability | MySQL and PostgreSQL queries, plans, locks | database_observability.mysql, .postgres | — |
| k6 | Load tests | otelcol.receiver.otlp | k6 |
| Fleet Management | Remote configuration | remotecfg | — |
| Kubernetes Monitoring | Turnkey Helm chart | k8s-monitoring (deploys several Alloys) | Kubernetes |
All these components are generally-available in Alloy v1.21.3: no --stability.level flag is needed.
These integrations fall into three families, which call for different precautions:
What’s new #
- OpenTelemetry engine (
alloy otel, public preview): runs a standard OpenTelemetry Collector YAML configuration inside Alloy, without translating it. - OpAMP supervisor (
alloy otel-supervisor): lets Fleet Management drive that engine remotely. - Offline validation:
alloy validate config.alloychecks syntax and references before deployment.
Useful commands #
alloy validate config.alloy # syntax, references, stability
alloy fmt -w config.alloy # canonical formatting
alloy run --stability.level=public-preview config.alloy
alloy otel --config otelcol.yaml # OpenTelemetry engine