Skip to content

Source

A source is an inbound receiver: syslog, OTLP gRPC/HTTP, file tail, journald, Kafka, Prometheus scrape, hostmetrics — anything in the OTel ecosystem that produces telemetry for the collector to forward.

You add a source on the collector group or the collector that should run it. One step creates the source and attaches it:

  • On a group — open the group, go to its Sources tab and click Add Source. Every member of the group runs it.
  • On a single collector — open the collector, go to its Sources tab and click Add Source.

Name the source, pick a receiver type and fill in its settings, then save. The collector picks up the new config with the next OpAMP push.

A group's Sources tab. Add Source creates a source on the group and every member runs it; Add existing from library attaches a shared one. Each row says whether it is local to the group or from the library.

A source created this way is local to its group or collector:

  • It runs only there, and you edit it from that group’s or collector’s tab.
  • It is not listed under Library → Sources, and no other group can add it.
  • Removing it from its group or collector deletes it, and so does deleting the group or collector.

The Library in the sidebar holds the sources, destinations and pipelines you share between groups. Use it for a source that several groups or collectors should run with the same settings.

  • Share a local source: click Save to library on its row. It stays attached where it was, nothing on that collector changes, and the row now reads from library. Other groups and collectors can now add it.
  • Add a shared source: on the group’s or collector’s Sources tab, click Add existing from library and pick it.
  • Create one directly in the Library: Library → Sources → New Source, then add it to groups with Add existing from library.
Add existing from library: pick a source that is already in the library. The group runs it alongside its own sources, and editing it in the library changes it everywhere it is used.

Editing a library source changes it on every group and collector that runs it. Before you save, the edit form says where it is used — “Used by 2 groups (and 1 collector)”. Removing a library source from a group detaches it there and keeps it in the Library.

Attaching a source to a group or collector creates a Source Activation — the instance of that receiver running there. It carries the runtime configuration:

  • Listen port + bind address (for receivers that open a socket)
  • Parser settings (severity mapping, timestamp extraction, multiline rules)
  • Resource attributes that get stamped on every record (service.name, deployment.environment, etc.)
  • An optional input filter that drops records before they enter any route
Add Source on a group: name the source, pick a receiver type and configure it. Saving creates it and attaches it to the group in one step.

A single source type can be activated multiple times on the same collector with different settings — for example, two syslog activations listening on different ports for two different upstream applications.

OTLP: one listener per protocol you ask for

Section titled “OTLP: one listener per protocol you ask for”

An OTLP source opens the protocols its configuration names, and no others. The OTLP gRPC template fills in gRPC Endpoint and leaves HTTP Endpoint empty, so the collector listens on 0.0.0.0:4317 and does not bind 4318. The OTLP HTTP template is the mirror of that.

To receive over both protocols, give both fields an address on the same source:

Field Value Result
gRPC Endpoint 0.0.0.0:4317 gRPC listener opened
HTTP Endpoint 0.0.0.0:4318 HTTP listener opened

Clearing a field closes that listener on the next config apply. At least one of the two must have an address — a source that listens on nothing is refused when you save it.

The addresses are part of the activation, so editing them on one collector’s activation changes what that collector binds and leaves every other activation of the same source alone.

An OTLP listener is plaintext until you give it a TLS Mode. The mode is the switch — the file fields below it do nothing until it is set.

TLS Mode What the listener does
Disabled Accepts plaintext from anyone who can reach the port
TLS Encrypted. Senders verify the collector; the collector does not check senders
Mutual TLS Encrypted, and a sender must present a certificate signed by your client CA

The three file fields are paths on the collector host, not uploads. Put the files there first — LinkMesh never stores a certificate, a key or a passphrase, and pasting one into a path field is refused when you save.

Field Needed for What to give
Server Certificate TLS, Mutual TLS The certificate this listener presents, e.g. /etc/linkmesh/tls/server.crt
Server Key TLS, Mutual TLS That certificate’s private key
Client CA Mutual TLS The CA that signs your senders’ certificates — this is what makes the listener demand one
Minimum TLS Version optional 1.0–1.3. Empty leaves the collector’s default, 1.2
Certificate Reload Interval optional e.g. 24h, to pick up a renewed certificate without restarting the collector

One TLS section covers every protocol the source opens: with both gRPC and HTTP enabled, both listeners use the same certificate.

The collector cannot start a listener whose certificate it cannot read, and LinkMesh cannot see the collector’s filesystem to check in advance. If a path is wrong, the source’s status on the Sources list reads Cannot load <filename> and carries the collector’s own message, naming the full path. Create the file on that host, or correct the path, and the listener comes up on the next config apply.

Surface Path
UI Group or collector → Sources tab. Shared sources: Library → Sources
Storage YAML file at gitops/collectors/<collectorID>/sources/<activationID>.yaml (or gitops/groups/<groupID>/sources/… on a group)
Generated config The collector’s rendered OTel config has one receiver block per activation

The YAML is the source of truth. Every change made in the UI is recorded as a version; the collector picks up the new config with the next OpAMP push.

The YAML holds the activation: which collector the source runs on and the settings you override there. The source’s own settings are stored in the server’s database, so they are not part of the version history and a rollback does not restore them.

Complete OpenTelemetry Collector configs for the same jobs, validated against the collector and with the mistake that usually breaks each one: