2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2026-01-02 02:57:26 +01:00

add benthos

This commit is contained in:
kev
2021-11-09 17:03:12 +08:00
parent 00801ff5c7
commit e5121a0ed1
5 changed files with 86 additions and 0 deletions

18
benthos/data/config.yaml Normal file
View File

@@ -0,0 +1,18 @@
input:
mqtt:
urls:
- tcp://broker.hivemq.com:1883
topics:
- easypi
pipeline:
processors:
- jq:
query: .
- http:
url: https://httpbin.org/post
verb: POST
output:
stdout:
codec: lines

2
benthos/data/output.txt Normal file
View File

@@ -0,0 +1,2 @@
{"hello":"world"}
{"foo":"bar"}