benthos 通过配置文件配置 stream 说明

stream 模式,我们也可以通过配置文件进行配置

参考配置文件

input:
  type: http_server
buffer:
  type: memory
pipeline:
  threads: 4
  processors:
  - type: jmespath
    jmespath:
      query: "{id: user.id, content: body.content}"
output:
  type: http_server

启动

使用安装包自带目录,mystream 拷贝了http 的几个配置

 ./benthos --streams --streams-dir ./mystream

查询注册

参考资料

https://github.com/Jeffail/benthos/blob/8f0d09a80569a09fcc424da1f95d96ef8ceb484b/docs/streams/using_config_files.md

posted on 2018-09-01 10:55  荣锋亮  阅读(386)  评论(0编辑  收藏  举报

导航