Skip to content

Commit 854ffd8

Browse files
Add OTLP forward config for gRPC (4315->4317) and HTTP (4316->4318) (open-telemetry#2524)
# Change Summary <!-- Replace with a brief summary of the change in this PR --> ## What issue does this PR close? <!-- We highly recommend correlation of every PR to an issue --> * Closes #NNN ## How are these changes tested? ## Are there any user-facing changes? <!-- If yes, provide further info below --> --------- Co-authored-by: Ragu Marimuthu <136855179+Ragu2023@users.noreply.github.com> Co-authored-by: Laurent Quérel <laurent.querel@gmail.com>
1 parent 0ba3e9d commit 854ffd8

2 files changed

Lines changed: 69 additions & 0 deletions

File tree

rust/otap-dataflow/configs/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,17 @@ OTLP receiver over both protocols:
133133
- Receives OTLP/HTTP on `127.0.0.1:4318`
134134
- Exports OTLP/gRPC traffic to `http://127.0.0.1:4319`
135135

136+
### `otlp-grpc-http-forward.yaml`
137+
138+
OTLP forwarding proxy with separate gRPC and HTTP pipelines:
139+
140+
- Receives OTLP/gRPC on `127.0.0.1:4315` and forwards to `http://127.0.0.1:4317`
141+
- Receives OTLP/HTTP on `127.0.0.1:4316` and forwards to `http://127.0.0.1:4318`
142+
143+
Note: In this configuration, the pipeline does not decode or
144+
encode OTLP messages; they are simply forwarded from one port
145+
to another.
146+
136147
### `otlp-perf.yaml`
137148

138149
OTLP receiver with performance metrics:
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
version: otel_dataflow/v1
2+
engine: { }
3+
groups:
4+
default:
5+
pipelines:
6+
grpc_pipeline:
7+
# OTLP/gRPC receiver on port 4315 -> OTLP/gRPC exporter to port 4317
8+
policies:
9+
channel_capacity:
10+
control:
11+
node: 100
12+
pipeline: 100
13+
pdata: 128
14+
15+
nodes:
16+
grpc_receiver:
17+
type: receiver:otlp
18+
config:
19+
protocols:
20+
grpc:
21+
listening_addr: "127.0.0.1:4315"
22+
23+
grpc_exporter:
24+
type: exporter:otlp_grpc
25+
config:
26+
grpc_endpoint: "http://127.0.0.1:4317"
27+
28+
connections:
29+
- from: grpc_receiver
30+
to: grpc_exporter
31+
32+
http_pipeline:
33+
# OTLP/HTTP receiver on port 4316 -> OTLP/HTTP exporter to port 4318
34+
policies:
35+
channel_capacity:
36+
control:
37+
node: 100
38+
pipeline: 100
39+
pdata: 128
40+
41+
nodes:
42+
http_receiver:
43+
type: receiver:otlp
44+
config:
45+
protocols:
46+
http:
47+
listening_addr: "127.0.0.1:4316"
48+
49+
http_exporter:
50+
type: exporter:otlp_http
51+
config:
52+
http: {}
53+
endpoint: "http://127.0.0.1:4318"
54+
client_pool_size: 1
55+
56+
connections:
57+
- from: http_receiver
58+
to: http_exporter

0 commit comments

Comments
 (0)