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.
- Category
- Collection
- Source
- OTLP
- Components
- otlpbatchmemory_limiterotlphttp
- Destination
- OTLP/HTTP endpoint
OpenTelemetry Collector
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:
otlp/input_src_00000501:
protocols:
grpc:
endpoint: 0.0.0.0:4317
The same, as an API call (see automation recipes):
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:
otlp/input_src_00000501:
protocols:
http:
endpoint: 0.0.0.0:4318
The same, as an API call (see automation recipes):
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.
Used in these pipelines
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
Related snippets
- Detect host and cloud resource attributesFill in host, environment and cloud resource attributes on the collector - without overwriting what the SDK already set.
- Set resource attributes the sender left outStamp environment and namespace onto telemetry at the collector, without overwriting what an SDK already set.
- Prometheus counters to a delta-only backend (cumulativetodelta)Scrape Prometheus counters and convert them to the delta temporality Dynatrace requires - gauges untouched.
- Receive logs from Fluent Bit and Fluentd (forward)Take logs from existing Fluent Bit or Fluentd agents over the forward protocol, without replacing them first.