Skip to content

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

PathRuntimeLinkMesh agent?Best for
ManagedGrafana AlloyYes — installs + supervises AlloyOne-command setup, lifecycle control, fleets you want LinkMesh to operate
Standards — AlloyGrafana AlloyNo (agentless)You already run / prefer Alloy and want LinkMesh to push config via remotecfg
Standards — otelcolotelcol-contribNo (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:

Terminal window
curl -fsSL https://linkmesh.io/install.sh | \
LINKMESH_SERVER=https://your-server.example.com \
LINKMESH_TOKEN=<token-from-wizard> \
sudo -E sh
  1. Adds the OpenSight APT/YUM repo and installs linkmesh-agent (the agent only — no collector yet).
  2. Enrolls the agent against your server (POST /api/v1/bootstrap), writing its mTLS cert + config.yaml to /etc/linkmesh-agent/.
  3. Restarts linkmesh-agent, which connects over gRPC.

Then install the collector runtime the agent will manage:

Terminal window
sudo linkmesh-agent install alloy

This 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:

Terminal window
# Managed: both services
systemctl is-active linkmesh-agent alloy
# Standards: just the collector you installed
systemctl is-active alloy # or: otelcol-contrib

In 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