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.
Create a source where it runs
Section titled “Create a source where it runs”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 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.
Reuse a source from the Library
Section titled “Reuse a source from the Library”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.
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.
Source Activation
Section titled “Source Activation”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
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.
OTLP: encrypting the listener
Section titled “OTLP: encrypting the listener”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.
When a file is not there
Section titled “When a file is not there”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.
Where it lives
Section titled “Where it lives”| 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.
See also
Section titled “See also”- Create a custom source or destination — write the receiver’s settings as YAML when the guided form doesn’t offer what you need
- Collector group — add a source once, every member runs it
- Collector — where activations live
- Route — wires an activation through a pipeline to one or more destinations
- Add a collector — activates a starter source as part of enrolment
Ready-to-use collector configs
Section titled “Ready-to-use collector configs”Complete OpenTelemetry Collector configs for the same jobs, validated against the collector and with the mistake that usually breaks each one:
- Tail a log file (filelog, restart-safe)
- Receive syslog, RFC 5424 and RFC 3164
- Receive OTLP over gRPC and HTTP
- Parse JSON log lines into attributes
- Parse nginx access logs into semantic conventions
- Parse Apache access logs into semantic conventions
- Parse key=value log lines
- Use the timestamp in the log line, in the right time zone
- Map your log levels to OpenTelemetry severity
- Collect host metrics (CPU, memory, disk, network, processes)
- Read systemd journal logs (journald)
- Scrape Prometheus metrics endpoints
- Receive StatsD metrics
- Receive logs from Fluent Bit and Fluentd (forward)
- Receive plain log lines over TCP
- Receive log messages over UDP
- Check HTTP endpoints (synthetic availability)
- Check TCP ports (databases, caches)
- Collect Windows Event Log (Application, System, Security)
- Parse IIS W3C access logs into semantic conventions
- Collect Windows performance counters (CPU, memory, disk)