forked from vectordotdev/vector
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvarint_framing_protobuf.yaml
More file actions
56 lines (52 loc) · 1.28 KB
/
varint_framing_protobuf.yaml
File metadata and controls
56 lines (52 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Example configuration demonstrating varint framing for protobuf
# This is compatible with tools like ClickHouse that use protobuf with varint length prefixes
sources:
protobuf_source:
type: socket
mode: tcp
address: "0.0.0.0:8080"
decoding:
codec: protobuf
protobuf:
desc_file: "path/to/your/protobuf.desc"
message_type: "your.package.MessageType"
framing:
method: varint_length_delimited
socket_source:
type: socket
mode: tcp
address: "0.0.0.0:8081"
decoding:
codec: protobuf
protobuf:
desc_file: "input.desc"
message_type: "input.Message"
framing:
method: varint_length_delimited
sinks:
protobuf_sink:
inputs:
- protobuf_source
type: socket
mode: tcp
address: "localhost:9090"
encoding:
codec: protobuf
protobuf:
desc_file: "path/to/your/protobuf.desc"
message_type: "your.package.MessageType"
framing:
method: varint_length_delimited
socket_output:
inputs:
- socket_source
type: socket
mode: tcp
address: "localhost:9090"
encoding:
codec: protobuf
protobuf:
desc_file: "output.desc"
message_type: "output.Message"
framing:
method: varint_length_delimited