mirror of
https://github.com/vimagick/dockerfiles.git
synced 2026-01-02 02:57:26 +01:00
add benthos
This commit is contained in:
18
benthos/data/config.yaml
Normal file
18
benthos/data/config.yaml
Normal 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
2
benthos/data/output.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
{"hello":"world"}
|
||||
{"foo":"bar"}
|
||||
Reference in New Issue
Block a user