Add a collector
A “collector” is the data plane — the OpenTelemetry runtime (Grafana Alloy or
otelcol-contrib) that actually receives, processes, and ships your telemetry.
LinkMesh is the control plane that configures it. This page helps you pick how
to connect one.
Three paths
| Path | Runtime | LinkMesh agent? | Best for |
|---|---|---|---|
| Managed | Grafana Alloy | Yes — installs + supervises Alloy | One-command setup, lifecycle control, fleets you want LinkMesh to operate |
| Standards — Alloy | Grafana Alloy | No (agentless) | You already run / prefer Alloy and want LinkMesh to push config via remotecfg |
| Standards — otelcol | otelcol-contrib | No (agentless) | You already run the OpenTelemetry Collector and want OpAMP-managed config |
All three give you central config push, fleet status, and per-component throughput on the topology canvas. They’re alternatives, not stages — pick one per host (you can mix paths across a fleet).
Managed path: the agent one-liner
The managed path installs linkmesh-agent, which then installs and supervises
upstream Grafana Alloy for you. Mint a token from Collectors → + Add
Collector → Agent (or Settings → Enrollment Tokens) and run:
curl -fsSL https://linkmesh.io/install.sh | \ LINKMESH_SERVER=https://your-server.example.com \ LINKMESH_TOKEN=<token-from-wizard> \ sudo -E sh- Adds the OpenSight APT/YUM repo and installs
linkmesh-agent(the agent only — no collector yet). - Enrolls the agent against your server (
POST /api/v1/bootstrap), writing its mTLS cert +config.yamlto/etc/linkmesh-agent/. - Restarts
linkmesh-agent, which connects over gRPC.
Then install the collector runtime the agent will manage:
sudo linkmesh-agent install alloyThis installs upstream Grafana Alloy (via its OS package channel) at the
pinned version and brings up the alloy service. The agent writes Alloy’s
bootstrap config (remotecfg + own_metrics) and supervises it from there.
Verify (any path)
On the host:
# Managed: both servicessystemctl is-active linkmesh-agent alloy# Standards: just the collector you installedsystemctl is-active alloy # or: otelcol-contribIn the LinkMesh UI, open Collectors — the host appears with status Online/Connected and a tier badge for its path. Click in to see agent version (managed) or runtime, last-seen, and live throughput.
Next steps
- Build your first pipeline — wire the new collector through a processing pipeline to a destination.
- Enrollment tokens — TTL, scope, regeneration, audit visibility.
- Troubleshooting enrollment — when a host doesn’t show up.