The agent — optional edge connector for onboarding
linkmesh-agent is an optional helper you can run alongside a
collector. It has two jobs:
- Onboarding — discover what’s worth collecting on a host (running services, log sources) or in a cluster (pods, namespaces, workloads) and feed that into the onboarding wizard, so you configure the collector from what’s really there instead of from a blank page.
- Local diagnostics — on-host commands to inspect and validate what’s
running:
config show,validate-config,status, andpreflight.
It is not a collector and produces no telemetry of its own — your logs, metrics, and traces always flow through the collector directly to your destinations, never through the agent. It is also never required: a collector runs, enrols, and receives its own config over OpAMP with no agent at all.
When you want the agent — and when you don’t
Section titled “When you want the agent — and when you don’t”| Scenario | Run the agent? |
|---|---|
| Onboarding a host with lots of services/log files and you want LinkMesh to find them for you | Yes. The agent inventories services and log sources and pre-fills the onboarding wizard. |
| Kubernetes cluster where you want to discover pods, namespaces, and workloads to decide what to collect | Yes (as a DaemonSet). |
| Your collector receives its config over OpAMP and you don’t need discovery | Optional. The collector gets its config straight from the server — run agentless unless you want discovery or on-host diagnostics. |
| Tightly locked-down host where you don’t want an extra component | No. Run the collector alone — it enrols and pulls its own config without the agent. |
The shorthand: the agent earns its place when discovery saves you work at onboarding time, or when you want on-host diagnostics. A collector needs no agent to keep running. To install the collector itself, use the OpAMP installer from the Add Collector wizard; see Onboard otelcol-contrib via OpAMP.
What the agent does
Section titled “What the agent does”- Service discovery (VMs). Inventories the services running on a host (databases, web servers, message brokers, …) so the onboarding wizard can suggest matching receivers and pipelines.
- Log-source discovery (VMs). Finds the log files and journald units worth collecting and surfaces them as candidate sources.
- Workload discovery (Kubernetes). As a DaemonSet, lists pods, namespaces, and workloads so you can pick what to onboard without hand-writing selectors.
- Feeds the onboarding wizard. Everything it discovers flows into the wizard, where you approve what becomes a real source. You stay in control of what’s actually collected.
- Local diagnostics. Read-only, on-host commands —
status,preflight,config show, andvalidate-config— to check the agent’s connection and inspect or validate the collector’s on-host config. - Reports host context. A lightweight heartbeat carries hostname, OS, and agent version so the fleet UI can show where the agent is running.
How config reaches the collector
Section titled “How config reaches the collector”The agent is not in the config path. The collector gets its config
directly from the LinkMesh server: opampsupervisor holds an OpAMP
WebSocket open to /v1/opamp, authenticated with a Bearer token, and the
server pushes the config down it. The supervisor writes the config and
restarts otelcol-contrib to load it.
See Native remote config for how that path works. Telemetry itself never flows through the agent either — your logs, metrics, and traces go from the collector straight to your destinations.
What the agent does NOT do
Section titled “What the agent does NOT do”The agent is intentionally not:
- A collector. It receives, processes, and exports no telemetry. The collector (otelcol-contrib) is the only telemetry runtime, and the agent never bundles or installs one — you install the collector separately.
- A telemetry path. Your logs/metrics/traces never pass through the agent — they flow collector → destination. If the agent isn’t running, telemetry is unaffected.
- The config-delivery mechanism. The collector receives its config from the server over OpAMP. The agent neither pushes nor writes the collector’s config.
- A collector supervisor. It does not start, stop, restart, or upgrade the collector as a managed service.
- Required. A collector runs fine with no agent at all. The agent adds discovery and diagnostics where you want them.
How it composes
Section titled “How it composes”The agent runs beside a collector — on a VM as a second process, on Kubernetes as its own DaemonSet — and talks only to the LinkMesh server:
┌────────────────────────────────────────────────────────────────┐
│ Host / cluster │
│ │
│ ┌────────────────────┐ ┌─────────────────────┐ │
│ │ linkmesh-agent │ │ Collector │ │
│ │ (optional) │ │ (otelcol-contrib) │ │
│ │ discovery + │ │ — telemetry runtime │ │
│ │ diagnostics │ └──────────┬──────────┘ │
│ └─────────┬──────────┘ │ telemetry │
│ │ discovery + host context │ out │
└─────────────┼────────────────────────────┬──────────┼────────────┘
│ │ config │
▼ │ (OpAMP) ▼
┌──────────────┐◀───────────────────┘ ┌──────────────────────┐
│ LinkMesh │ │ Your telemetry │
│ server │ │ destinations │
└──────────────┘ └──────────────────────┘
The agent sends only discovery + host context to the server. The collector
receives its config directly from the server over OpAMP. The agent is never
in the config path.
See also
Section titled “See also”- Architecture overview — the collector runtime and how config + telemetry flow.
- Native remote config — how collectors get config directly from LinkMesh.
- Install the LinkMesh agent — per-OS install and enrolment.
- Build your first pipeline — configure a collector, with or without the agent.