LinkMesh

Search docs, blog and changelog

ENDE

Receive OTLP over gRPC and HTTP

The front door of a pipeline. Accept OTLP from application SDKs and from other collectors, on both transports, for traces, metrics and logs.

Signals
LogsMetricsTraces
Category
Collection
Source
OTLP
Components
otlpbatchmemory_limiterotlphttp
Destination
OTLP/HTTP endpoint

OpenTelemetry Collector

OpenTelemetry Collector YAML
receivers:
  otlp:
    protocols:
      grpc:
        endpoint: 0.0.0.0:4317
      http:
        endpoint: 0.0.0.0:4318

processors:
  memory_limiter:
    check_interval: 1s
    limit_percentage: 80
  batch: {}

exporters:
  otlphttp:
    endpoint: https://your-backend:4318

service:
  pipelines:
    traces:
      receivers: [otlp]
      processors: [memory_limiter, batch]
      exporters: [otlphttp]
    metrics:
      receivers: [otlp]
      processors: [memory_limiter, batch]
      exporters: [otlphttp]
    logs:
      receivers: [otlp]
      processors: [memory_limiter, batch]
      exporters: [otlphttp]

LinkMesh

Library › Sources › OTLP gRPC

gRPC Endpoint
0.0.0.0:4317

What LinkMesh then pushes to the collector, under receivers:

Pushed to the collector
otlp/input_src_00000501:
  protocols:
    grpc:
      endpoint: 0.0.0.0:4317

The same, as an API call (see automation recipes):

API call
curl -X POST "$LINKMESH/sources" \
  -H "Authorization: Bearer $LMSAT" \
  -H "Content-Type: application/json" \
  -d '{
  "defaultConfig": {
    "grpc_endpoint": "0.0.0.0:4317"
  },
  "name": "OTLP gRPC",
  "receiverType": "otlp"
}'

Library › Sources › OTLP HTTP

HTTP Endpoint
0.0.0.0:4318

What LinkMesh then pushes to the collector, under receivers:

Pushed to the collector
otlp/input_src_00000501:
  protocols:
    http:
      endpoint: 0.0.0.0:4318

The same, as an API call (see automation recipes):

API call
curl -X POST "$LINKMESH/sources" \
  -H "Authorization: Bearer $LMSAT" \
  -H "Content-Type: application/json" \
  -d '{
  "defaultConfig": {
    "http_endpoint": "0.0.0.0:4318"
  },
  "name": "OTLP HTTP",
  "receiverType": "otlp"
}'

The rest of the collector config above (memory_limiter, batch, otlphttp) is not part of these templates: in LinkMesh those are separate sources, processors and destinations on the route.

Generated from LinkMesh's template catalogue by linkmesh-server snippet-render 1.470.5, not written by hand.

Download config.yamlValidated with otelcol-contrib v0.165.0 on 2026-11-30

Complete config files, each checked with the collector's own validate command (otelcol-contrib v0.165.0). Replace https://your-backend:4318 with your own OTLP endpoint before you run it.

The gotcha

The bind address decides who can reach it. Bound to localhost, other containers cannot connect; bound to 0.0.0.0 without TLS, anyone who can reach the port can send to it. This config binds 0.0.0.0, so put it behind your network controls or add TLS.

Skip the YAML on every host

LinkMesh has this job built in as the OTLP gRPC and OTLP HTTP source templates: activate it on a collector from the control plane instead of editing config files host by host. The first 25 Collectors are free after a no-card registration in the OpenSight Customer Portal (5 without one).

Doing this in LinkMesh: Sources